Simplify - Articles tagged with GNU LinuxPersonal website of Saša Jovanićhttps://www.simplify.ba/articles/tags/gnu-linux/2021-12-17T19:12:00+01:00Saša JovanićKilling nginx processhttps://www.simplify.ba/articles/2016/02/17/killing-nginx-process/2016-02-17T11:50:00+01:002016-02-17T15:07:35+01:00Saša Jovanić<p>Yet another command that I don't use often and always need to search for it. The reason that I write about this here is to find is easily next time…</p>
<pre class="highlight plaintext"><code>$ sudo service nginx start
</code></pre>
<p>Response I got was <code>bind() to 0.0.0.0:80 failed (98: Address already in use)</code>. Trying <code>stop</code> or <code>restart</code> does not help and it's not the first time. Then this command comes to rescue:</p>
<pre class="highlight plaintext"><code>$ sudo fuser -k 80/tcp
</code></pre>
<p>This will kill old nginx instance for sure. Or anything else that listens to port 80.</p>