{"id":4485,"date":"2018-06-15T12:33:01","date_gmt":"2018-06-15T12:33:01","guid":{"rendered":"https:\/\/geekdecoder.com\/?p=4485"},"modified":"2018-06-15T12:33:01","modified_gmt":"2018-06-15T12:33:01","slug":"nginx-fails-to-start-azure","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/06\/15\/nginx-fails-to-start-azure\/","title":{"rendered":"Nginx fails to start when Centos\/Plesk migrated to Azure"},"content":{"rendered":"<p>There is a small issue where a Plesk\/CentOS 7 system is migrated to Azure and nginx fails to start.<br \/>\nThis is the error in the nginx log<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# cat \/var\/log\/nginx\/error.log\n2018\/06\/14 22:11:41 &#x5B;emerg] 9341#0: bind() to 10.144.114.11:443 failed (99: Cannot assign requested address)\n\n<\/pre>\n<p>If so then to edit:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/etc\/sysctl.conf\n\n<\/pre>\n<p>And add:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# net.ipv4.ip_nonlocal_bind = 1 \n\n<\/pre>\n<p>Then Run:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# sysctl -p \/etc\/sysctl.conf\n\n<\/pre>\n<p>start Nginx:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n#service nginx start\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There is a small issue where a Plesk\/CentOS 7 system is migrated to Azure and nginx fails to start. This is the error in the nginx log # cat \/var\/log\/nginx\/error.log 2018\/06\/14 22:11:41 &#x5B;emerg] 9341#0: bind() to 10.144.114.11:443 failed (99: Cannot assign requested address) If so then to edit: # \/etc\/sysctl.conf And add: # net.ipv4.ip_nonlocal_bind = &#8230; <a title=\"Nginx fails to start when Centos\/Plesk migrated to Azure\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/06\/15\/nginx-fails-to-start-azure\/\" aria-label=\"Read more about Nginx fails to start when Centos\/Plesk migrated to Azure\">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":[8,74],"tags":[],"class_list":["post-4485","post","type-post","status-publish","format-standard","hentry","category-azure","category-nginx"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4485","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=4485"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4485\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}