A, nginx profile:
nginx is a great web server performance, while also providing a reverse proxy, load balancing, proxy e-mail and other functions. Russians use C language development of open source software.
Second, install nginx
step1: dependent libraries pcre (support regular expression), libz (compression and decompression functions), openssl (website encryption)
sudo apt-get install libpcre3-dev
sudo apt-get install libz-dev
sudo apt-get install libssl-dev
step2: Source download http://nginx.org/en/download.html download the stable version stable version
sudo wget http://nginx.org/download/nginx-1.16.1.tar.gz
tar -zxvf nginx-1.16.1.tar.gz
Contents Introduction:
auto: compile the scripts, executable files configure will use
cc: script checks the compiler
lib: script checks dependencies of
os: Check the operating system types of scripts
CHANGES: repair functions, new features
CHANGES.ru: Russian version
conf: the default configuration file
configure: You must execute this script generates the necessary middleware before compiling nginx
contrib: scripts and tools
html: html file Welcome screen interface errors related to
man: nginx help directory
src: source code directory
core: core code
event: event module
http: http module code
mail: E-mail module relevant code
os: operating system dependent code
stream: flow related to the module code
step3: ./configure perform configuration script after the implementation of the newly generated Makefile folder and objs
step4: Compile execute commands or make make install
If the make command will get the nginx executable file named in the directory under objs
If you do make install will get nginx executable file in / usr / local / nginx / sbin
step5: Start nginx
sudo ./nginx
See if started successfully: ps -ef | grep nginx
step6: access to web servers, see the ip address linux server, and then access the ip in windows, the following results appear successful.