centos下nginx关闭后启动失败解决方法
来源:互联网 发布:知乎问答 能挣钱吗 编辑:程序博客网 时间:2024/04/28 03:32
情况:
[root@qwer init.d]# /usr/local/nginx-1.5.1/sbin/nginx -t (测试配置文件语法是否正确)
nginx: the configuration file /usr/local/nginx-1.5.1//conf/nginx.conf syntax is oknginx: configuration file /usr/local/nginx-1.5.1//conf/nginx.conf test is successful
[root@qwer init.d]# /usr/local/nginx-1.5.1/sbin/nginx -s reload (平滑重启)
nginx: [alert] kill(22359, 1) failed (3: No such process)
[root@qwer init.d]# ps -ef|grep nginx
root 22426 1 0 13:44 ? 00:00:08 gedit /usr/local/nginx-1.5.1/logs/access.log
root 22781 5280 0 14:33 pts/2 00:00:00 grep nginx
解决方法:
[root@qwer init.d]# /usr/local/nginx-1.5.1/sbin/nginx -c /usr/local/nginx-1.5.1/conf/nginx.conf (使用-c指定配置文件)[root@qwer init.d]# /usr/local/nginx-1.5.1/sbin/nginx -s reload
[root@qwer init.d]# ps -ef|grep nginx
root 22426 1 0 13:44 ? 00:00:08 gedit /usr/local/nginx-1.5.1/logs/access.log
root 22803 1 0 14:38 ? 00:00:00 nginx: master process /usr/local/nginx-1.5.1/sbin/nginx -c /usr/local/nginx-1.5.1/conf/nginx.conf
nobody 22807 22803 0 14:38 ? 00:00:00 nginx: worker process
root 22809 5280 0 14:38 pts/2 00:00:00 grep nginx
0 0
- centos下nginx关闭后启动失败解决方法
- centos下nginx的启动、关闭、重启操作
- centos 5.9 启动nginx失败
- CentOS下mysql启动失败
- centos下nginx的启动
- CentOS下nginx启动脚本
- centos 6.4 启动后突然关闭
- iis启动失败后的解决方法
- iis启动失败后的解决方法
- centos6.5下LNMP环境中修改配置文件后nginx重启失败的解决方法
- 解决Centos 6.4环境下myeclipse启动后突然关闭问题
- Eclipse启动失败,启动一半后自动关闭
- centos启动后出现DMA错误解决方法
- CentOS启动失败 CentOS开机卡在进度条的解决方法
- ubuntu 10.10下vpn设置完成后仍旧提示启动vpn服务失败的解决方法
- windows 下 nginx 的启动 停止 关闭
- Linux下nginx的关闭启动
- Linux下Nginx快捷启动关闭设置
- spring mvc 调用dubbo出现了空指针的问题
- LeetCode 贪心 | 122. Best Time to Buy and Sell Stock II
- select的各种取值设置问题
- iOS-画一个三角形(导航栏点击出现更多的时候可能用到)
- ReactiveCoca(iOS)简单介绍
- centos下nginx关闭后启动失败解决方法
- 一个老鸟发的公司内部整理的 Android 学习路线图 Markdown 版本
- Android adb logcat查看及其过滤log命令
- C#通用类库--加密解密类
- K-Means聚类和EM算法复习总结
- hmailserver + afterlogic 搭建webmail
- 八个Docker的真实应用场景
- java基础------>Class类
- LeetCode 简单操作 | 12. Integer to Roman