Heim > Artikel > Backend-Entwicklung > nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginxpid”
在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教程有兴趣的朋友有所帮助。