Installation of Nginx
Need to download four packages
1.zlib Library (download: http://www.zlib.net/)
2.pcre Library (download: http://www.pcre.org/)
3.openssl Library (download: http://www.openssl.org/)
4.Nginx Package (Download: http://nginx.org/en/download.html)
Installation steps
First step: Download the required installation package
Openssl-fips-2.0.9.tar.gz
Zlib-1.2.8.tar.gz
Pcre-8.35.tar.gz
Nginx-1.2.9.tar.gz
Step Two: Install openssl-fips-2.0.9.tar.gz zlib-1.2.8.tar.gz pcre-8.35.tar.gz nginx-1.2.9.tar.gz
1. Installing openssl-fips-2.0.9.tar.gz
# TAR-ZXVF openssl-fips-2.0. 9 . tar.gz # cd OpenSSL-fips-2.0. 9 # . /Config # make# make install
2. Installing zlib-1.2.8.tar.gz
# TAR-ZXVF zlib-1.2. 8 . tar.gz# CD zlib-1.2. 8 # . /Configure # make# make install
3. Installing pcre-8.35.tar.gz
# TAR-ZXVF pcre-8.35. tar.gz# cd pcre-8.35#. /Configure # make# make install
4. Installing nginx-1.2.9.tar.gz
# TAR-ZXVF nginx-1.2. 6 . tar.gz # cd Nginx-1.2. 6 # . /configure--with-pcre=. /pcre-8.35 --with-zlib=. /zlib-1.2. 8 --with-openssl=. /openssl-fips-2.0. 9 # make# make install
At this point, Nginx installation succeeded
Check if the installation was successful
# CD /usr/local/nginx/sbin#. /nginx-t
If the following prompt appears, the installation is successful
Reference Blog: http://www.cnblogs.com/dennisit/archive/2012/12/26/2834719.html
Installation of the Linux Nginx