首页 > Web > nginx > 正文

nginx 重启报错 [error] invalid PID number /usr/.../nginx.pid
2020-03-12 10:14:14 点击:

大致如下,无论重启或停止都会报错:[root@123 ~] service nginx restartStoping nginx nginx: [error] invalid PID number
大致如下,无论重启或停止都会报错:

[root@123 ~]# service nginx restart
Stoping nginx... nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
failed. Use force-quit
Starting nginx... nginx (pid 11124 599) already running.




原因,猜测可能是nginx卡死:

ps -ef|grep nginx



 

kill -9 599 11124    #杀死主进程


再次重启,正常:

service nginx start

service nginx restart






相关热词搜索:

上一篇:网站 FastCGI sent in stderr: "Unable to open primary script 排查案例
下一篇:nginx跨域解决方案