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
网友评论