title: I installed nginx server on mac os x. Now i try to restart it and get below error.
body: <p>I tried to install nginx serve on mac os x by following below link, when i try to restart server gives me below error.</p>
  
  <p><a href="https://www.hrupin.com/2017/11/how-to-install-nginx-webserver-on-mac-os-x" rel="nofollow noreferrer">How to install Nginx webserver on Mac OS X</a>  </p>
  
  <pre><code>sudo nginx -s stop
  
  nginx: [error] invalid PID number "   " in "/usr/local/var/run/nginx.pid"
  </code></pre>