nginx -s reload时出现open() "/run/nginx.pid" failed (2: No such file or directory)错误

解决办法:

  找到你的nginx.conf的文件夹目录,比如我的为/etc/nginx/nginx.conf,然后运行这个 
  nginx -c /etc/nginx/nginx.conf命令, 
  再运行nginx -s reload,就可以了

posted @ 2018-09-07 14:55  sqdtss  阅读(210)  评论(0编辑  收藏  举报