Home >Backend Development >PHP Tutorial >nginx: [error] invalid PID number '” in '/usr/local/var/run/nginx/nginxpid”

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

WBOY
WBOYOriginal
2016-07-28 08:29:451685browse

Use brew to install Nginx on Mac, then modify the Nginx configuration file, and then the following error will appear when restarting:

<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>

Solution:

<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); }); });

The above has introduced nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginxpid”, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:centos6 install nginxNext article:centos6 install nginx