{"id":10639,"date":"2023-01-23T16:03:20","date_gmt":"2023-01-23T08:03:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/lzkdkmlbpjsd"},"modified":"2023-01-23T16:03:20","modified_gmt":"2023-01-23T08:03:20","slug":"lzkdkmlbpjsd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lzkdkmlbpjsd","title":{"rendered":"linux \u67e5\u770b\u7aef\u53e3\u547d\u4ee4 \u672c\u7bc7\u4ecb\u7ecd\u7684\u65b9\u6cd5\u64cd\u4f5c\u7b80\u5355\u5feb\u6377\uff0c\u5b9e\u7528\u6027\u5427"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u8bb2\u89e3\u201c<a style='color:#0000CC' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>\u600e\u4e48\u7528<a style='color:#0000CC' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\u67e5\u770b\u7aef\u53e3\u201d\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u4e0d\u59a8\u6765\u770b\u770b\u3002\u672c\u6587\u4ecb\u7ecd\u7684\u65b9\u6cd5\u64cd\u4f5c\u7b80\u5355\u5feb\u6377<strong>linux \u67e5\u770b\u7aef\u53e3\u547d\u4ee4<\/strong>\uff0c\u5b9e\u7528\u6027\u5f3a\u3002\u4e0b\u9762\u5c31\u8ba9\u5c0f\u7f16\u6765\u5e26\u5927\u5bb6\u5b66\u4e60\u201cLinux\u600e\u4e48\u7528\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u201d\u5427!<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>netstat -- atulnp\u4f1a\u663e\u793a\u6240\u6709\u7aef\u53e3\u548c\u6240\u6709\u5bf9\u5e94\u7684\u7a0b\u5e8f<strong>linux \u67e5\u770b\u7aef\u53e3\u547d\u4ee4<\/strong>\uff0c\u7528grep\u7ba1\u9053\u53ef\u4ee5\u8fc7\u6ee4\u51fa\u60f3\u8981\u7684\u5b57\u6bb5<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-a \uff1aall\uff0c\u8868\u793a\u5217\u51fa\u6240\u6709\u7684\u8fde\u63a5\uff0c\u670d\u52a1\u76d1\u542c\uff0cSocket\u8d44\u6599<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-t \uff1atcp\uff0c\u5217\u51fatcp\u534f\u8bae\u7684\u670d\u52a1<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-u \uff1audp\uff0c\u5217\u51faudp\u534f\u8bae\u7684\u670d\u52a1<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-n \uff1aport number\uff0c \u7528\u7aef\u53e3\u53f7\u6765\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-l \uff1alistening\uff0c\u5217\u51fa\u5f53\u524d\u76d1\u542c\u670d\u52a1<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-p \uff1aprogram\uff0c\u5217\u51fa\u670d\u52a1\u7a0b\u5e8f\u7684PID<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Proto \uff1a\u7f51\u7edc\u4f20\u8f93\u534f\u8baelinux\u683c\u5f0f\u5316\u547d\u4ee4\uff0c\u4e3b\u8981\u4e3atcp\u548cudp<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Local Address \uff1a\u672c\u5730\u7684ip:port<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Foreign Address\uff1a\u8fdc\u7a0b\u4e3b\u673a\u7684ip:port<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>State \uff1a\u8fde\u7ebf\u72b6\u6001\u5c0f\u578blinux\u7cfb\u7edf\uff0c\u4e3b\u8981\u6709\u76d1\u542c\uff08 LISTEN \uff09\u548c\u5efa\u7acb\uff08ESTABLISED\uff09<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>PID\/Program\uff1a\u670d\u52a1\u7684\u8fdb\u7a0b\u7f16\u53f7\/\u670d\u52a1\u540d\u79f0<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5230\u6b64\uff0c\u76f8\u4fe1\u5927\u5bb6\u5bf9\u201cLinux\u600e\u4e48\u7528\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u201d\u6709\u4e86\u66f4\u6df1\u7684\u4e86\u89e3\uff0c\u4e0d\u59a8\u6765\u5b9e\u9645\u64cd\u4f5c\u4e00\u756a\u5427\uff01\u8fd9\u91cc\u662f\u4ebf\u901f\u4e91\u7f51\u7ad9\uff0c\u66f4\u591a\u76f8\u5173\u5185\u5bb9\u53ef\u4ee5\u8fdb\u5165\u76f8\u5173\u9891\u9053\u8fdb\u884c\u67e5\u8be2\uff0c\u5173\u6ce8\u6211\u4eec\uff0c\u7ee7\u7eed\u5b66\u4e60\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u8bb2\u89e3\u201cLinux\u600e\u4e48\u7528\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u201d\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u4e0d\u59a8\u6765\u770b\u770b\u3002\u4e0b\u9762\u5c31\u8ba9\u5c0f\u7f16\u6765\u5e26\u5927\u5bb6\u5b66\u4e60\u201cLinux\u600e\u4e48\u7528\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u201d\u5427!atulnp\u4f1a\u663e\u793a\u6240\u6709\u7aef\u53e3\u548c\u6240\u6709\u5bf9\u5e94\u7684\u7a0b\u5e8f\uff0c\u7528grep\u7ba1\u9053\u53ef\u4ee5\u8fc7\u6ee4\u51fa\u60f3\u8981\u7684\u5b57\u6bb5\uff1aall\uff0c\u8868\u793a\u5217\u51fa\u6240\u6709\u7684\u8fde\u63a5\uff0c\u670d\u52a1\u76d1\u542c\uff0cSocket\u8d44\u6599\uff1alistening\uff0c\u5217\u51fa\u5f53\u524d\u76d1\u542c\u670d\u52a1\u5230\u6b64\uff0c\u76f8\u4fe1\u5927\u5bb6\u5bf9\u201cLinux\u600e\u4e48\u7528\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u201d\u6709\u4e86\u66f4\u6df1\u7684\u4e86\u89e3\uff0c\u4e0d\u59a8\u6765\u5b9e\u9645\u64cd\u4f5c\u4e00\u756a\u5427\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[23,60,43],"class_list":["post-10639","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-lxt","tag-tdk","tag-wldk"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/10639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=10639"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/10639\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=10639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=10639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=10639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}