{"id":61793,"date":"2025-04-29T15:21:32","date_gmt":"2025-04-29T07:21:32","guid":{"rendered":"https:\/\/fwq.ai\/blog\/61793\/"},"modified":"2025-04-29T15:21:32","modified_gmt":"2025-04-29T07:21:32","slug":"linux%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b80%e7%ab%af%e5%8f%a3%e8%a2%ab%e5%93%aa%e4%b8%aa%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/61793\/","title":{"rendered":"linux\u5982\u4f55\u67e5\u770b80\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528"},"content":{"rendered":"<blockquote><p>\n  linux\u67e5\u770b80\u7aef\u53e3\u5360\u7528\u60c5\u51b5\u53ef\u4ee5\u4f7f\u7528lsof\u547d\u4ee4\uff0c\u5177\u4f53\u6b65\u9aa4\u662f\uff1a1\u3001\u6253\u5f00\u7ec8\u7aef\uff1b2\u3001\u8fd0\u884c\u201csudo lsof -i :80\u201d\u547d\u4ee4\u4ee5\u67e5\u770b\u5360\u752880\u7aef\u53e3\u7684\u8fdb\u7a0b\u5373\u53ef\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202307\/11\/2023071115292027054.jpg\" class=\"aligncenter\" title=\"linux\u5982\u4f55\u67e5\u770b80\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u63d2\u56fe\" alt=\"linux\u5982\u4f55\u67e5\u770b80\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002<\/p>\n<p>\u5728Linux\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528lsof\u547d\u4ee4\u6765\u67e5\u770b\u7279\u5b9a\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u6b65\u9aa4\uff1a<\/p>\n<p>1\u3001\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<p>2\u3001\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u67e5\u770b\u5360\u752880\u7aef\u53e3\u7684\u8fdb\u7a0b\uff1a<\/p>\n<pre>&nbsp;sudo&nbsp;lsof&nbsp;-i&nbsp;:80<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u7aef\u53e380\u88ab\u5360\u7528\uff0c\u5c06\u663e\u793a\u4f7f\u7528\u8be5\u7aef\u53e3\u7684\u8fdb\u7a0b\u5217\u8868\u3002<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5lsof\u547d\u4ee4\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\uff08\u5982apt\u3001yum\u7b49\uff09\u8fdb\u884c\u5b89\u88c5\u3002\u8bf7\u6839\u636e\u4f60\u7684Linux\u53d1\u884c\u7248\u9009\u62e9\u76f8\u5e94\u7684\u547d\u4ee4\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5982\u679c\u4f60\u53ea\u662f\u60f3\u67e5\u770b\u5f53\u524d\u76d1\u542c\u6240\u6709\u7aef\u53e3\u7684\u8fdb\u7a0b\u548c\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>sudo&nbsp;netstat&nbsp;-tlnp<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u663e\u793a\u6240\u6709\u6b63\u5728\u76d1\u542c\u7684\u7aef\u53e3\u53ca\u5176\u76f8\u5173\u8fdb\u7a0b\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u5728\u8f93\u51fa\u4e2d\u67e5\u627e80\u7aef\u53e3\u6240\u5bf9\u5e94\u7684\u8fdb\u7a0b\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u67e5\u770b80\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u67e5\u770b80\u7aef\u53e3\u5360\u7528\u60c5\u51b5\u53ef\u4ee5\u4f7f\u7528lsof\u547d\u4ee4\uff0c\u5177\u4f53\u6b65\u9aa4\u662f\uff1a1\u3001\u6253\u5f00\u7ec8\u7aef\uff1b2\u3001\u8fd0\u884c\u201csudo lsof -i :80\u201d\u547d\u4ee4\u4ee5\u67e5\u770b\u5360\u752880\u7aef\u53e3\u7684\u8fdb\u7a0b\u5373\u53ef\u3002 \u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002 \u5728Linux\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528lsof\u547d\u4ee4\u6765\u67e5\u770b\u7279\u5b9a\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u6b65\u9aa4\uff1a 1\u3001\u6253\u5f00\u7ec8\u7aef\u3002 2\u3001\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u67e5\u770b\u5360\u752880\u7aef\u53e3\u7684\u8fdb\u7a0b\uff1a &nbsp;sudo&nbsp;lsof&nbsp;-i&nbsp;:80 \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u7aef\u53e380\u88ab\u5360\u7528\uff0c\u5c06\u663e\u793a\u4f7f\u7528\u8be5\u7aef\u53e3\u7684\u8fdb\u7a0b\u5217\u8868\u3002 \u5982\u679c\u6ca1\u6709\u5b89\u88c5lsof\u547d\u4ee4\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\uff08\u5982apt\u3001yum\u7b49\uff09\u8fdb\u884c\u5b89\u88c5\u3002\u8bf7\u6839\u636e\u4f60\u7684Linux\u53d1\u884c\u7248\u9009\u62e9\u76f8\u5e94\u7684\u547d\u4ee4\u3002 \u53e6\u5916\uff0c\u5982\u679c\u4f60\u53ea\u662f\u60f3\u67e5\u770b\u5f53\u524d\u76d1\u542c\u6240\u6709\u7aef\u53e3\u7684\u8fdb\u7a0b\u548c\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a sudo&nbsp;netstat&nbsp;-tlnp \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u663e\u793a\u6240\u6709\u6b63\u5728\u76d1\u542c\u7684\u7aef\u53e3\u53ca\u5176\u76f8\u5173\u8fdb\u7a0b\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u5728\u8f93\u51fa\u4e2d\u67e5\u627e80\u7aef\u53e3\u6240\u5bf9\u5e94\u7684\u8fdb\u7a0b\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u67e5\u770b80\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/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-61793","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61793","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=61793"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61793\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=61793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=61793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=61793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}