centos下nginx关闭后启动失败解决方法
2017-03-02 11:47
393 查看
情况:
[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 ok
nginx: 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
[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 ok
nginx: 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
相关文章推荐
- Nginx启动、重启失败的一般解决方法和步骤
- Centos7 编译安装nginx1.10.2 脚本启动失败解决思路
- centos6.5下LNMP环境中修改配置文件后nginx重启失败的解决方法
- CentOS桌面环境中网卡启动失败的解决方法
- CentOS启动失败 CentOS开机卡在进度条的解决方法
- centos 7 添加 nfs 开机启动失败解决方法
- CentOS 7下MySQL服务启动失败的快速解决方法
- Windows10下启动nginx反向代理服务器失败的解决方法(重在解决:80端口被PID为4的System占用问题)
- Nginx启动、重启失败的一般解决方法和步骤
- centos7 kdump.service启动失败的解决方法
- centos7 rngd.service启动失败的解决方法
- CentOS启动失败 CentOS开机卡在进度条的解决方法
- Nginx服务启动失败问题解决方法
- vmware克隆centos后启动网卡失败解决方法
- Oracle表空间文件损坏导致的数据库异常关闭并启动失败问题的解决方法
- CentOS 7下MySQL服务启动失败的快速解决方法
- 安装完SQL2000后启动服务器提示“由于登录失败而无法启动服务”解决方法
- sqlserver 1069错误(由于登录失败而无法启动服务)解决方法
- startx启动图形界面失败的几个解决方法
- 关于vS2005中启动调试失败句柄绑定无效的解决方法