码迷,mamicode.com
首页 > 其他好文 > 详细

nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”

时间:2018-12-15 12:05:50      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:conf   特定   一个   配置   bre   nginx配置文件   sudo   ber   val   

在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误:

nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid"

解决办法:


指定一个特定的nginx加载配置文件。
$ sudo nginx -c /usr/local/etc/nginx/nginx.conf
$ sudo nginx -s reload

nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”

标签:conf   特定   一个   配置   bre   nginx配置文件   sudo   ber   val   

原文地址:https://www.cnblogs.com/mafeng/p/10122604.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!