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

【Nginx 部署问题】解决 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 -c 的参数指定 nginx.conf 文件的位置
  • 然后在重写加载 nginx 的配置文件即可
  • 如图
    在这里插入图片描述
    问题解决!

感谢阅读, 如有什么更好的建议或方法 ,可以留言或进群交流. 各种疑难杂症QQ交流群:1101584918,欢迎大家加入。

猜你喜欢

转载自blog.csdn.net/Lance_welcome/article/details/106454897