美文网首页nginx
启动Nginx出现这个错误nginx: [error] open

启动Nginx出现这个错误nginx: [error] open

作者: 啊好久不见 | 来源:发表于2018-10-13 16:26 被阅读0次

启动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命令,

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

相关文章

网友评论

    本文标题:启动Nginx出现这个错误nginx: [error] open

    本文链接:https://www.haomeiwen.com/subject/paioaftx.html