nginx编译安装

#官网:
http://nginx.org/

#下载tar.gz包
wget http://nginx.org/download/nginx-1.16.1.tar.gz

wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.gz


yum -y install openssl openssl-devel

./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=../pcre-8.44 --with-zlib=../zlib-1.2.11

原文地址:https://www.cnblogs.com/myJuly/p/12685271.html