1.yum install gcc-c++
2.yum install yum install -y pcre pcre-devel
3.yum install -y openssl
4.yum install -y zlib zlib-devel
5.cd /opt
6.tar -zxvf nginx-1.14.1.tar.gz -C /usr/local
7.cd /usr/local/nginx-1.14.1
8. ./configure && make && make install
9. cd /usr/local/nginx/sbin
10. ./nginx
11.重启 ./nginx -s reload