1、下载pcre
下载地址:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
解压到/usr/local/pcre8.3.9
2、下载openssl
下载地址: https://www.openssl.org/source/
同上,解压到/usr/local/openssl
3、安装zlib
下载地址 : http://zlib.net/zlib-1.2.8.tar.gz
同上,解压到/usr/local/zlib
4、安装nginx, --with-pcre和with-openssl、with-zlib是源码目录
下载地址:https://nginx.org/en/download.html
编译:
./configure --prefix=/usr/local/nginx --pid-path=/tmp/nginx.pid --with-http_ssl_module --with-pcre=/usr/local/pcre8.3.9 --with-zlib=/usr/local/zlib --with-openssl=/usr/local/openssl
make && make install
5、相关配置自行百度