二、先安装依赖软件:
yum -y install pcre-devel
yum -y install openssl openssl-devel
三、检测并且配置
./configure --prefix=/usr/local/soft/nginx --sbin-path=/usr/local/soft/nginx/sbin/nginx --conf-path=/usr/local/soft/nginx/config/nginx.conf --error-log-path=/usr/local/soft/nginx/logs/error.log --pid-path=/usr/local/soft/nginx/logs/nginx.pid --http-log-path=/usr/local/soft/nginx/logs/access.log
四、make && make install
原文:https://blog.51cto.com/2065997140/2444683