##进入Nginx官网(https://nginx.org/),点击 download 链接
#nginx 依赖安装
yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
tar -zxf
配置
./configure \ --prefix=/usr/local/nginx \ --pid-path=/var/local/nginx/nginx.pid \ --lock-path=/var/local/nginx/nginx.lock \ --error-log-path=/var/local/nginx/error.log \ --http-log-path=/var/local/nginx/access.log \ --with-http_gzip_static_module \ --http-client-body-temp-path=/var/local/nginx/client \ --http-proxy-temp-path=/var/local/nginx/proxy \ --http-fastcgi-temp-path=/var/local/nginx/fastcgi \ --http-uwsgi-temp-path=/var/local/nginx/uwsgi \ --http-scgi-temp-path=/var/local/nginx/scgi \ --with-http_stub_status_module \ --with-http_ssl_module
#make #make install #cd /usr/local/nginx/sbin/ #./nginx #useradd -s /sbin/nologin -M nginx