wget http://nginx.org/download/nginx-1.19.0.tar.gz
yum install -y gcc pcre-devel zlib-devel openssl-devel
./configure --prefix=/opt/nginx \ --with-http_ssl_module \ --http-client-body-temp-path=/opt/nginx/temp/client_body_temp \ --http-proxy-temp-path=/opt/nginx/temp/proxy_temp \ --http-fastcgi-temp-path=/opt/nginx/temp/fastcgi_temp \ --http-uwsgi-temp-path=/opt/nginx/temp/uwsgi_temp \ --http-scgi-temp-path=/opt/nginx/temp/scgi_temp
make && make install
cd /opt/nginx && mkdir temp && sbin/nginx
sbin/nginx
sbin/nginx -s stop
檢查nginx.conf配置文件的正確性和完整性nginx
sbin/nginx -t ``` - 從新加載 修改nginx.conf配置文件後,能夠不用重啓nginx實現熱加載配置信息 ``` sbin/nginx -s reload ```