{"id":2642,"date":"2015-09-11T00:59:28","date_gmt":"2015-09-11T00:59:28","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2642"},"modified":"2015-09-11T00:59:28","modified_gmt":"2015-09-11T00:59:28","slug":"nginx-error-bind-to-80-failed-98-address-already-in-use","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/09\/11\/nginx-error-bind-to-80-failed-98-address-already-in-use\/","title":{"rendered":"Nginx Error bind() to [::]:80 failed (98: Address already in use)"},"content":{"rendered":"<p>Site is being load balanced and you get this error is different locations:<\/p>\n<p>It works!<\/p>\n<p>This is the default web page for this server.<\/p>\n<p>The web server software is running but no content has been added, yet.<\/p>\n<p>This is using apache vs Nginx. <\/p>\n<p>Restart nginx fails:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nroot@web2:\/var\/log\/nginx# tail -f error.log\n2015\/09\/11 01:00:13 &#x5B;emerg] 5190#5190: bind() to &#x5B;::]:80 failed (98: Address already in use)\n2015\/09\/11 01:00:13 &#x5B;emerg] 5190#5190: bind() to 0.0.0.0:80 failed (98: Address already in use)\n<\/pre>\n<p>Then it means nginx or some other process is already using port 80.<\/p>\n<p>You can kill it using:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# sudo fuser -k 80\/tcp\n\n<\/pre>\n<p>And then try restarting nginx again:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# service nginx start\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Site is being load balanced and you get this error is different locations: It works! This is the default web page for this server. The web server software is running but no content has been added, yet. This is using apache vs Nginx. Restart nginx fails: root@web2:\/var\/log\/nginx# tail -f error.log 2015\/09\/11 01:00:13 &#x5B;emerg] 5190#5190: bind() &#8230; <a title=\"Nginx Error bind() to [::]:80 failed (98: Address already in use)\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/09\/11\/nginx-error-bind-to-80-failed-98-address-already-in-use\/\" aria-label=\"Read more about Nginx Error bind() to [::]:80 failed (98: Address already in use)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-2642","post","type-post","status-publish","format-standard","hentry","category-nginx"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2642"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2642\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}