nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)

啓動nginx失敗nginx

[root@base run]# nginx -s reload
nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)

問題分析:bash

nginx異常中斷,重啓後失敗code

解決辦法:class

[root@base run]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/nginx.conf
[root@base run]# nginx -s reload

查看對應的pid文件,已生成,nginx正常啓動file

相關文章
相關標籤/搜索