码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-08-19 18:05:12      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:alt   inf   ati   方法   time   stat   file   flex   info   

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

启动Nginx出现这个错误

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

技术分享图片 
解决方法:找到你的nginx.conf的文件夹目录,然后运行这个 
nginx -c /usr/local/etc/nginx/nginx.conf命令, 
再运行nginx -s reload,就可以了

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

标签:alt   inf   ati   方法   time   stat   file   flex   info   

原文地址:https://www.cnblogs.com/maohuidong/p/9501931.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!