1. Install the PCRE Library before installing nginx
Latest ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
Tar-zxvf pcre-8.21.tar.gz, unzipped Directory: pcre-8.21
Then enter the cd pcre-8.21 for configuration, compilation, Installation
Configuration
./Configure or./config
Compile
Make
Install
Make install
2. Install the zlib library
Tar-zxvf zlib-1.2.5.tar.gz
Cd zlib-1.2.5
./Configure
Make
Makeinstall
3. Install the openSSL library
Download Page: http://www.openssl.org/source/
Tar-zxvf openssl-1.0.0.tar.gz, unzipped Directory: openssl-1.0.0
Then enter the cd openssl-1.0.0 for configuration, compilation, Installation
Configuration
./Configure or./config
Compile
Make
Install
Make install
4. Make sure that the above three libraries are installed and then install nginx
Tar zxvf nginx-1.1.12.tar.gz
Cd nginx-1.1.12/
./Configure -- user = root -- group = root -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-openssl =/usr/local/ssl/include/openssl
Make & make install
Cd ../
After the installation is complete, an nginx directory is displayed in/usr/local. OK.
From the hand of God