1, offline installation nginx premise to install gcc, c ++, pcre, zlib, openssl and openssl-devel
2, install gcc c ++ participate blog link https://blog.csdn.net/byxdaz/article/details/91370949
3, pcre installation (pcre can just unzip)
Download https://sourceforge.net/projects/pcre/
I am here to download version pcre-8.35
Extracting tar -zxvf /usr/local/src/ppcre-8.35.tar.gz
4, zlib installation (zlib decompression can only)
Download http://www.zlib.net/ I downloaded version zlib-1.2.11.tar.gz
tar -zxvf /usr/local/src/zlib-1.2.11.tar.gz
5, openssl and openssl-devel (decompression can only)
Download https://www.openssl.org/source/openssl-1.0.2h.tar.gz
6 install nginx
(1) Download nginx version Download http://nginx.org/
(2) extracting file tar zxvf nginx-1.6.2.tar.gz
(3) into the installation package directory cd nginx-1.6.2
(4) Compile
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35 --with-zlib=/usr/local/src/zlib-1.2.11 --with-openssl=/usr/local/src/openssl-1.0.2h
make
make install
(5) View installed version
/ Usr / local / nginx / sbin / nginx -v version identification successful installation tips