首页 >后端开发 >php教程 >nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginxpid”

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-07-28 08:29:451715浏览

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

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

解决办法:

<code>$ <span>sudo</span> nginx -c /usr/local/etc/nginx/nginx.conf
$ <span>sudo</span> nginx <span>-s</span> reload</code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了 nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginxpid”,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:centos6安装nginx下一篇:2016-6-21 杂感