First, download Pcre
Official website Download: http://www.pcre.org/
# wget Http://sourceforge.net/projects/pcre/files/pcre/8.35/pcre-8.35.tar.gz/download
# cd/pcre-8.35
Second, download purge module (for deleting nginx cache)
# wget http://labs.frickle.com/files/ngx_cache_purge-2.1.tar.gz
# tar ZXVF ngx_cache_purge-2.1.tar.gz
Third, installation zlib
#./configure--prefix=/usr/local/zlib
# Make && make install
Iv. installation of OpenSSL
# wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
# CD Openssl-1.0.1h.tar.gz
# tar ZXFV openssl-1.0.1h.tar.gz
# CD OPENSSL-1.0.1H
#./config
#./config--prefix=/usr/local/openssl
# Make && make install
V. Installation of gcc-c++
# yum Install-y gcc-c++
Six, download the latest Nginx stable version for installation
# wget http://nginx.org/download/nginx-1.7.2.tar.gz
# tar ZXVF nginx-1.7.2.tar.gz
#./configure--with-pcre=/data/software/pcre-8.35--add-module=. /ngx_cache_purge-1.2--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-zlib=/ Usr/local/zlib--with-openssl=/usr/local/openssl
Installation: Make && make install
Note: If it appears: Error: ' ngx_http_file_cache_node_t ' has no member named ' Length ' exception, may be ngx_cache_purge-2.1.tar.gz The version is too old to cause