title: Nginx running or not?
body: <p>I was surprised because the:</p>
  
  <pre><code>nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  </code></pre>
  
  <p>when starting Nginx, so I supposed that Nginx or other was running in the port. I've tested with:</p>
  
  <pre><code>lsof -i :80                         
  COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
  nginx   13557 www-data    8u  IPv4 100729      0t0  TCP *:http (LISTEN)
  nginx   13558 www-data    8u  IPv4 100729      0t0  TCP *:http (LISTEN)
  </code></pre>
  
  <p>so yes, Nginx was working and in fact web pages are running. All perfect but...not!</p>
  
  <p>How can be possible this?</p>
  
  <pre><code>service nginx status
  [FAIL] nginx is not running ... failed!
  </code></pre>
  
  <p>Not running? But I can't start any other instance because it's running! What's happening?</p>
  
  <p>The same when restarting:</p>
  
  <pre><code>service nginx restart
  Restarting nginx: Enter PEM pass phrase:
  Enter PEM pass phrase:
  nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  </code></pre>
  
  <p>Thanks in advance.</p>