1、升级Nginx
/usr/local/nginx/sbin/nginx -V
cd /usr/local/src
tar -zxvf nginx-1.23.1.tar.gz
cd nginx-1.23.1
./configure --prefix=/usr/local/nginx --user=www-data --group=www-data --with-pcre --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old.1_18_0
cp objs/nginx /usr/local/nginx/sbin/
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -V
/usr/local/nginx/sbin/nginx -v
kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
kill -WINCH `cat /usr/local/nginx/logs/nginx.pid.oldbin`
kill -HUP `cat /usr/local/nginx/logs/nginx.pid.oldbin`
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
/usr/local/nginx/sbin/nginx -V