{"id":3575,"date":"2020-02-13T22:26:50","date_gmt":"2020-02-13T14:26:50","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=3575"},"modified":"2020-02-23T18:12:52","modified_gmt":"2020-02-23T10:12:52","slug":"nginx-emerg-bind-to-0-0-0-080-failed-98-address-already-in-use","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/3575.html","title":{"rendered":"nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)"},"content":{"rendered":"

\u4eca\u5929\u4e0a\u5348\u53d1\u73b0\u7f51\u7ad9\uff0c\u51fa\u73b0\u6570\u636e\u5e93\u8fde\u63a5\u9519\u8bef\uff0c\u4ee5\u4e3a\u662fmysql\u6302\u6389\u4e86\u5462\u3002\u7ed3\u679c\u767b\u5f55\u9762\u677f\u4e00\u770b\uff0c\u662fnginx\u505c\u6b62\u670d\u52a1\u4e86\uff0c\u4e8e\u662f\u6211\u5c31\u5c1d\u8bd5\u91cd\u542fnginx\u670d\u52a1\uff0c\u7ed3\u679c\u53d1\u73b0\u542f\u52a8\u4e0d\u4e86\uff0c\u51fa\u73b0\u5982\u4e0b\u63d0\u793a\uff1a<\/p>\n

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)<\/code><\/pre>\n

\"\"<\/a><\/p>\n

\u5927\u6982\u610f\u601d\u5c31\u662f80\u7aef\u53e3\u88ab\u5360\u7528\uff0c\u4e60\u60ef\u6027\u91cd\u8d77\u670d\u52a1\u5668\uff0c\u7ed3\u679c\u53d1\u73b0\u91cd\u542f\u540e\u95ee\u9898\u4f9d\u65e7\uff0c\u7528SSH\u767b\u5f55\u670d\u52a1\u5668\u67e5\u770b\u7aef\u53e3\uff0cPID\u9009\u9879\u91cc\u9762\u4e0d\u663e\u793a\u662f\u54ea\u4e2a\u5360\u7528\u8fd9\u4e2a\u7aef\u53e3\u3002<\/p>\n

 <\/p>\n

\"\"<\/a>\u7ecf\u67e5\uff0c\u6211\u8fd9\u4e2a\u4f7f\u7528\u7684\u662fGD\u7684\u670d\u52a1\u5668\uff0c\u5b83\u9700\u8981\u63d0\u4f9b\u6743\u9650\u624d\u80fd\u64cd\u4f5c\uff0c\u6240\u4ee5\u6267\u884c\u4e86\u4e00\u4e0bsudo su root<\/p>\n

\u7136\u540e\u518d\u67e5\u770b\u7aef\u53e3\u3002\u7ec8\u4e8e\u6709\u7ed3\u679c\u4e86\"\"<\/a><\/p>\n

 <\/p>\n

\u4f7f\u7528kill\u547d\u4ee4\u6740\u6b7b\u5360\u7528\u7684\u8fdb\u7a0b<\/p>\n

kill 383<\/code><\/pre>\n

\u7136\u540e\u518d\u91cd\u8d77nginx\u8fdb\u884c\uff0c\u6210\u529f\u3002<\/p>\n

\u611f\u89c9\u83ab\u540d\u5176\u5999\uff0c\u6ca1\u5bf9\u670d\u52a1\u5668\u8fdb\u884c\u4efb\u4f55\u64cd\u4f5c\uff0c\u4e3a\u5565\u7aef\u53e3\u4f1a\u88ab\u5360\u7528\uff1f<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u4eca\u5929\u4e0a\u5348\u53d1\u73b0\u7f51\u7ad9\uff0c\u51fa\u73b0\u6570\u636e\u5e93\u8fde\u63a5\u9519\u8bef\uff0c\u4ee5\u4e3a\u662fmysql\u6302\u6389\u4e86\u5462\u3002\u7ed3\u679c\u767b\u5f55\u9762\u677f\u4e00\u770b\uff0c\u662fnginx\u505c\u6b62\u670d\u52a1\u4e86\uff0c\u4e8e\u662f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2],"tags":[1174,850],"class_list":["post-3575","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-wljs","tag-80-failed","tag-nginx"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=3575"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3575\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=3575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=3575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=3575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}