在Mac上用brew安裝Nginx熏版,然后修改Nginx配置文件惨驶,再重啟時(shí)報(bào)出如下錯(cuò)誤:
nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid"
解決辦法:
$ sudo nginx -c /usr/local/etc/nginx/nginx.conf
$ sudo nginx -s reload
在Mac上用brew安裝Nginx熏版,然后修改Nginx配置文件惨驶,再重啟時(shí)報(bào)出如下錯(cuò)誤:
nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid"
解決辦法:
$ sudo nginx -c /usr/local/etc/nginx/nginx.conf
$ sudo nginx -s reload