1、依賴包安裝
yum install pcre pcre-devel openssl openssl-devel -y
2、用戶創建
useradd nginx -s /sbin/nologin -M
3、安裝
wget?nginx.org/download/nginx-1.10.1.tar.gz
tar xf nginx-1.10.1.tar.gz
cd nginx-1.10.1
./configure --user=nginx --group=nginx --prefix=/opt/application/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-openssl=/root/openssl-1.0.2h
make && make install