nginx1.14.0安装
yum install pcre pcre-devel -y
yum install -y openssl openssl-devel
useradd nginx -s /sbin/nologin -M
cd /root/
wget -q http://nginx.org/download/nginx-1.14.0.tar.gz
tar xf nginx-1.14.0.tar.gz
cd nginx-1.14.0
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-http_ssl_module
make
make install
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx -V
转载于:https://blog.51cto.com/zuoshou/2121641