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

nginx 启动出现错误

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

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

nginx -c /usr/local/etc/nginx/nginx.conf 

再运行

nginx -s reload

就可以了

posted @ 2020-10-14 10:42  牛奔  阅读(633)  评论(0编辑  收藏  举报