centos6.10 yum -y install gcc-c++ yum -y install pcre pcre-devel yum -y install openssl openssl-devel

cd /usr/local/src/ wget http://nginx.org/download/nginx-1.16.0.tar.gz tar zxvf nginx-1.16.0.tar.gz cd nginx-1.16.0 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --user=nginx --with-http_ssl_module --with-http_gzip_static_module --http-client-body-temp-path=/usr/local/nginx/client/ --http-proxy-temp-path=/usr/local/nginx/proxy/ --http-fastcgi-temp-path=/usr/local/nginx/fcgi/ --with-pcre make && make install useradd nginx 测试 /usr/local/nginx/sbin/nginx -v /usr/local/nginx/sbin/nginx netstat -ntlp |grep 80