1 from http://nginx.org/en/download.html or http://nginx.net/en/download.html
wget http://nginx.org/download/nginx-0.6.38.tar.gz
2 Unzip the installation:
Tar zxvf nginx-0.6.38.tar.gz
CD nginx-0.6.38
./configure
Make
Make install
Normal installation, this is OK, but sometimes the following prompt error is shown:
Configuration Summary
+ PCRE Library is not found
+ OpenSSL Library is not used
+ MD5 library is not used
+ SHA1 Library is not used
+ Using System zlib Library
./configure:error:the HTTP Rewrite module requires the PCRE library.
You can either disable the module by using--without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
Statically from the source with Nginx by using--with-pcre= option.
As you can see from the tips above, you need to install the Pcre library
./CONFIGURE:ERROR:SSL modules require the OpenSSL library.
You can either does not enable the modules, or install the OpenSSL library
Into the system, or build the OpenSSL library statically from the source
With Nginx by using --with-openssl=<path> option.
Error:the HTTP Rewrite module requires the PCRE library.