作者:D之phper | 来源:互联网 | 2023-09-11 13:28
nginx:[error]open()“unginx.pid”failed(2:Nosuchfileordirectory)[日期:2018-11-03]来源:Linux公社 作者
nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
[日期:2018-11-03] |
来源:Linux公社 作者:醉落红尘 |
[字体:大 中 小] |
CentOS 7.5下启动Nginx出现如下错误:
nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
解决方法:找到你的nginx.conf的文件夹目录,然后运行类似如下命令
nginx -c etc/nginx/nginx.conf
再运行nginx -s reload,就可以了。
如下图:
![nginx: [error] open() “/run/nginx.pid” failed (2:](https://img.php1.cn/3cd4a/1eebe/cd5/8be1ccb5166feb93.webp)
after you
发布了311 篇原创文章 · 获赞 28 · 访问量 13万+
私信
关注