首页 > 其他 > 详细

nginx 编译平滑升级

时间:2021-01-07 13:08:18      阅读:17      评论:0      收藏:0      [点我收藏+]
cd  /usr/local/
wget  https://www.openssl.org/source/old/1.1.1/openssl-1.1.1e.tar.gz
tar xf openssl-1.1.1e.tar.gz
wget http://tengine.taobao.org/download/tengine-2.3.2.tar.gz
tar xf tengine-2.3.2.tar.gz
cd tengine 
./configure --prefix=/usr/local/nginx  --with-http_stub_status_module --with-pcre --add-module=modules/ngx_http_upstream_check_module  --with-http_ssl_module     --with-openssl=/usr/local/openssl-1.1.1e
make
##注意make 后不需要进行make install
cd /usr/local/nginx/sbin
mv nginx nginx.old
cd /usr/local/tengine-2.3.2/objs
cp nginx /usr/local/nginx/sbin
kill -USR2 `cat /var/run/nginx.pid`             ##nginx pid文件具体根据nginx.conf 确定
kill -WINCH `cat /var/run/nginx.pid.oldbin`
kill -QUIT `cat /var/run/nginx.pid.oldbin`

nginx 编译平滑升级

原文:https://www.cnblogs.com/rockstics/p/14245690.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!