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)

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

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

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

如下图所示:


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM