{"id":18172,"date":"2024-11-18T09:06:40","date_gmt":"2024-11-18T01:06:40","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18172\/"},"modified":"2024-11-18T09:06:40","modified_gmt":"2024-11-18T01:06:40","slug":"linux-80%e7%ab%af%e5%8f%a3%e8%a2%ab%e5%8d%a0%e7%94%a8%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18172\/","title":{"rendered":"linux 80\u7aef\u53e3\u88ab\u5360\u7528\u600e\u4e48\u89e3\u51b3"},"content":{"rendered":"<blockquote><p>\n  \u89e3\u51b3 linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\u95ee\u9898\uff1a\u627e\u51fa\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b\uff1anetstat -tlnp | grep :80\u7ec8\u6b62\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b\uff1asudo kill -9 \u68c0\u67e5\u7aef\u53e3\u662f\u5426\u88ab\u91ca\u653e\uff1anetstat -tlnp | grep :80\u5176\u4ed6\u89e3\u51b3\u65b9\u6848\uff1a\u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\u4fee\u6539\u7aef\u53e3\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\u91cd\u542f\u8ba1\u7b97\u673a\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/04\/2024060411451894401.jpg\" class=\"aligncenter\" title=\"linux 80\u7aef\u53e3\u88ab\u5360\u7528\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" alt=\"linux 80\u7aef\u53e3\u88ab\u5360\u7528\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u89e3\u51b3 Linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\u7684\u95ee\u9898<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>Linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\uff0c\u8be5\u5982\u4f55\u89e3\u51b3\uff1f<\/p>\n<p><strong>\u56de\u7b54\uff1a<\/strong>\u8981\u89e3\u51b3 Linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\u95ee\u9898\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u627e\u51fa\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b<\/strong><\/p>\n<pre>netstat -tlnp | grep :80<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u5217\u51fa\u6b63\u5728\u4f7f\u7528 80 \u7aef\u53e3\u7684\u8fdb\u7a0b\u3002\u627e\u5230\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b ID (PID)\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u7ec8\u6b62\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b<\/strong><\/p>\n<pre>sudo kill -9 &lt;PID&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5c06 \u66ff\u6362\u4e3a\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b ID\u3002 <\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u68c0\u67e5\u7aef\u53e3\u662f\u5426\u88ab\u91ca\u653e<\/strong><\/p>\n<pre>netstat -tlnp | grep :80<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u518d\u6b21\u8fd0\u884c\u6b64\u547d\u4ee4\uff0c\u68c0\u67e5 80 \u7aef\u53e3\u662f\u5426\u5df2\u88ab\u91ca\u653e\u3002<\/p>\n<p><strong>\u5176\u4ed6\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\uff1a<\/strong>\u5982\u679c web \u670d\u52a1\u5668\u6216\u5176\u4ed6\u670d\u52a1\u65e0\u9700\u4fa6\u542c 80 \u7aef\u53e3\uff0c\u8bf7\u7981\u7528\u5b83\u4eec\u3002<\/li>\n<li> <strong>\u4fee\u6539\u7aef\u53e3\uff1a<\/strong>\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u5e94\u7528\u7a0b\u5e8f\u6216\u670d\u52a1\u7684\u914d\u7f6e\u6765\u4f7f\u7528\u4e0d\u540c\u7684\u7aef\u53e3\u3002<\/li>\n<li> <strong>\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\uff1a<\/strong>\u53ef\u4ee5\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u4ee5\u963b\u6b62\u5176\u4ed6\u8fdb\u7a0b\u8bbf\u95ee 80 \u7aef\u53e3\u3002<\/li>\n<li> <strong>\u91cd\u542f\u8ba1\u7b97\u673a\uff1a<\/strong>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u91cd\u542f\u8ba1\u7b97\u673a\u53ef\u4ee5\u91ca\u653e\u88ab\u5360\u7528\u7684\u7aef\u53e3\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f 80\u7aef\u53e3\u88ab\u5360\u7528\u600e\u4e48\u89e3\u51b3\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u51b3 linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\u95ee\u9898\uff1a\u627e\u51fa\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b\uff1anetstat -tlnp | grep :80\u7ec8\u6b62\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b\uff1asudo kill -9 \u68c0\u67e5\u7aef\u53e3\u662f\u5426\u88ab\u91ca\u653e\uff1anetstat -tlnp | grep :80\u5176\u4ed6\u89e3\u51b3\u65b9\u6848\uff1a\u7981\u7528\u4e0d\u9700\u8981\u7684\u670d\u52a1\u4fee\u6539\u7aef\u53e3\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\u91cd\u542f\u8ba1\u7b97\u673a \u5982\u4f55\u89e3\u51b3 Linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\u7684\u95ee\u9898 \u95ee\u9898\uff1aLinux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\uff0c\u8be5\u5982\u4f55\u89e3\u51b3\uff1f \u56de\u7b54\uff1a\u8981\u89e3\u51b3 Linux \u4e0a 80 \u7aef\u53e3\u88ab\u5360\u7528\u95ee\u9898\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u6b65\u9aa4 1\uff1a\u627e\u51fa\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b netstat -tlnp | grep :80 \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u6b64\u547d\u4ee4\u5c06\u5217\u51fa\u6b63\u5728\u4f7f\u7528 80 \u7aef\u53e3\u7684\u8fdb\u7a0b\u3002\u627e\u5230\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b ID (PID)\u3002 \u6b65\u9aa4 2\uff1a\u7ec8\u6b62\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b sudo kill -9 &lt;PID&gt; \u767b\u5f55\u540e\u590d\u5236 \u5c06 \u66ff\u6362\u4e3a\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b ID\u3002 \u6b65\u9aa4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18172","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=18172"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18172\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}