1.准备环境
yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
2.官网下载
wget -c https://nginx.org/download/nginx-1.14.1.tar.gz
3.解压
tar -xzvf nginx-1.14.0.tar.gz
mv /home/iaps/software/nginx-1.14.0 /usr/local/src/
4.配置
cd /usr/local/src/nginx-1.14.0
./configure -- 默认配置
5.编译
make
make install
参考
https://blog.csdn.net/weisong530624687/article/details/79743416