-
博文分类专栏
- Jquery基础教程
-
- 文章:(15)篇
- 阅读:46569
- shell命令
-
- 文章:(42)篇
- 阅读:154248
- Git教程
-
- 文章:(36)篇
- 阅读:234885
- leetCode刷题
-
- 文章:(76)篇
- 阅读:131876
-
nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx2018-03-24 13:18 阅读(7778) 评论(0)
nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx.pid"
在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误:
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