nginx平滑升级make upgrade出错的解决办法
2014-03-05 20:50
316 查看
为nginx平滑升级在make upgrate那一步除了点小状况
找不到进程文件出错,无法进行下一步
再次启动脚本,有如下提示
我也不清楚为什么nginx启动了却没有进程文件。
所以先把nginx kill掉,重新启动
接着make upgrate就成功了升级
希望对大家有帮助
本文出自 “小风” 博客,请务必保留此出处http://huanglianfeng.blog.51cto.com/4813074/1368859
[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]#
希望对大家有帮助
本文出自 “小风” 博客,请务必保留此出处http://huanglianfeng.blog.51cto.com/4813074/1368859
相关文章推荐
- java.util.Date()插入MySQL数据库datetime字段出错的解决办法
- 文章标题 : 关于dpkg:处理 xxx (--configure)时出错:的我的解决办法
- 在windows中的DOS窗口执行adb shell出错的解决办法
- 处理报表时出错。 (rsProcessingAborted)的解决办法
- 解决 C 程序内存访问出错办法
- 关于数据不满一屏时,下拉刷新和上拉加载同时响应出错解决办法(非正规方式)
- Android混淆打包出错,出现类似 there were 100 duplicate class definitions解决办法 分类: Android安装及配置 2014-12-20 10:31 171人阅读 评论(0) 收藏
- OFFICE VISIO 2007 在安装过程中出错的解决办法
- Android studio启动Genymotion出错的解决办法
- linux CentOS x64 里php源码编译出错参见情况及解决办法
- Python post中文参数传递出错的一种解决办法
- 在项目中导入import javax.servlet 出错解决办法
- 对于django中mysql中文乱码以及调用admin出错的解决办法
- mysql 数据库卸载不完全,配置出错解决办法
- linux下Make编译出错,输入/输出错误原因及解决办法
- dorado7运行时虚拟机出错解决办法
- jquery.min.map 404 (Not Found)出错的原因及解决办法
- php session_start()出错原因分析及解决办法
- git迁移到svn时原有历史提交中出现过冲突导致git svn dcommit出错的解决办法
- Mysql 出错,Can't create/write to file C:\WINDOWS\TEMP\#sql_1588_0.MYI(Errcode:13)的解决办法