日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

nginx平滑升级make upgrade出错的解决办法

發布時間:2023/12/31 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 nginx平滑升级make upgrade出错的解决办法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

為nginx平滑升級在make upgrate那一步除了點小狀況



[root@web01 nginx-1.0.5]# make upgrade /usr/local/nginx/sbin/nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful kill -USR2 `cat /usr/local/nginx/logs/nginx.pid` sleep 1 test -f /usr/local/nginx/logs/nginx.pid.oldbin make: *** [upgrade] 錯誤 1 [root@web01 nginx-1.0.5]#


找不到進程文件出錯,無法進行下一步


再次啟動腳本,有如下提示


[root@web01 sbin]# ./nginxold [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: still could not bind()

這步是說80端口被使用


我也不清楚為什么nginx啟動了卻沒有進程文件。

所以先把nginx kill掉,重新啟動


[root@web01 sbin]# pkill -int nginx [root@web01 sbin]# ./nginxold [root@web01 sbin]#



接著make upgrate就成功了升級


[root@web01 nginx-1.0.5]# make upgrade /usr/local/nginx/sbin/nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful kill -USR2 `cat /usr/local/nginx/logs/nginx.pid` sleep 1 test -f /usr/local/nginx/logs/nginx.pid.oldbin kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin` [root@web01 nginx-1.0.5]# [root@web01 nginx-1.0.5]#



希望對大家有幫助





轉載于:https://blog.51cto.com/huanglianfeng/1368859

總結

以上是生活随笔為你收集整理的nginx平滑升级make upgrade出错的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。