nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)解决办法

今天爱分享给大家带来nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)解决办法,希望能够帮助到大家。

nginx 启动报错:Nginx -s  reload;

nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

解决方案:

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

以这种方式启动,就可以了

人已赞赏
Nginx

open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)NGINX启动/重启报错【解决办法】

2020-10-21 9:55:41

Nginx

nginx 重启报错:nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)

2020-10-21 10:12:51

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧