<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Simplify - Articles tagged with GNU Linux</title>
  <subtitle>Personal website of Saša Jovanić</subtitle>
  <id>https://www.simplify.ba/articles/tags/gnu-linux/</id>
  <link href="https://www.simplify.ba/articles/tags/gnu-linux/"/>
  <link href="https://www.simplify.ba/articles/tags/gnu-linux/feed.xml" rel="self"/>
  <updated>2021-12-17T19:12:00+01:00</updated>
  <author>
    <name>Saša Jovanić</name>
  </author>
  <entry>
    <title>Killing nginx process</title>
    <link rel="alternate" href="https://www.simplify.ba/articles/2016/02/17/killing-nginx-process/"/>
    <id>https://www.simplify.ba/articles/2016/02/17/killing-nginx-process/</id>
    <published>2016-02-17T11:50:00+01:00</published>
    <updated>2016-02-17T15:07:35+01:00</updated>
    <author>
      <name>Saša Jovanić</name>
    </author>
    <content type="html">&lt;p&gt;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…&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo service nginx start
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Response I got was &lt;code&gt;bind() to 0.0.0.0:80 failed (98: Address already in use)&lt;/code&gt;. Trying &lt;code&gt;stop&lt;/code&gt; or &lt;code&gt;restart&lt;/code&gt; does not help and it's not the first time. Then this command comes to rescue:&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo fuser -k 80/tcp
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will kill old nginx instance for sure. Or anything else that listens to port 80.&lt;/p&gt;
</content>
  </entry>
</feed>
