首页 > 其他 > 详细

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

时间:2019-08-03 14:55:25      阅读:100      评论:0      收藏:0      [点我收藏+]

启动Nginx出现这个错误:

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

技术分享图片

解决方法:找到你的nginx.conf的文件夹目录,然后运行这个

nginx -c /usr/local/etc/nginx/nginx.conf命令,

再运行 sudo nginx -s reload,就可以了,

如下图所示:

技术分享图片

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

原文:https://www.cnblogs.com/tugenhua0707/p/11294801.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!