首页 >
web >
nginx
nginx 重启报错 [error] invalid PID number /usr/.../nginx.pid
时间:2020-03-12 10:14:14 点击: 来源: 作者:
大致如下,无论重启或停止都会报错:
[root@123 ~]# service nginx restart
Stoping nginx... nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
failed. Use force-quit
Starting ...
大致如下,无论重启或停止都会报错:
[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
”您可通过以下微信二维码,赞赏作者“