1. Specify a file storage location USR/LOCAL/SRC
2. Download Nginx, wget http://nginx.org/download/nginx-1.12.0.tar.gz
3. Unzip: Tar zxf nginx ...
4. Go to nginx directory, do not know how to operate can view help (./configure--help)
Specify the installation directory:./configure--prefix=/usr/local/nginx
This will be reported not installed Pcre,zlib class library, yum look for the installation,
Yum Search Pcre
Yum install pcre pcre-devel confirm y Download and install
Yum Install zlib Zlib-devel
After success, then back to install Nginx
./configure--prefix=/usr/local/nginx
Make && make install
At this time the installation is successful, the next to start Nginx, first go to the Nginx installation directory
(View port occupancy: NETSTAR-TUPLN | grep 80)
Turn off fire service iptables stop
Cd/usr/local/nginx/sbin
Installing Nginx under Linux