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

啓動Nginx出現這個錯誤:nginx

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

解決方法:找到你的nginx.conf的文件夾目錄,而後運行這個file

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

再運行 sudo nginx -s reload,就能夠了,im

以下圖所示:d3

相關文章
相關標籤/搜索