首页 > 其他 > 详细

nginx: [error] invalid PID number

时间:2019-07-16 22:23:54      阅读:106      评论:0      收藏:0      [点我收藏+]
一、检查nginx配置文件语法有无错误

[root@web01 conf]# /application/nginx/sbin/nginx -t
nginx: the configuration file /application/nginx-16.0/conf/nginx.conf syntax is ok

nginx: configuration file /application/nginx-16.0/conf/nginx.conf test is successful

二、平滑重启并失败

[root@web01 conf]# /application/nginx/sbin/nginx -s reload
nginx: [error] invalid PID number "" in "/application/nginx-16.0/logs/nginx.pid"

三、使用此命令:/application/nginx/sbin/nginx -c /application/nginx-16.0/conf/nginx.conf

[root@web01 conf]# /application/nginx/sbin/nginx -c /application/nginx-16.0/conf/nginx.conf

四、平滑重启成功

[root@web01 conf]# /application/nginx/sbin/nginx -s reload

nginx: [error] invalid PID number

原文:https://blog.51cto.com/14078730/2420859

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