Home >Backend Development >PHP Tutorial >nginx: [error] invalid PID number '” in '/usr/local/var/run/nginx/nginxpid”
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>
<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.