{"id":20538,"date":"2025-04-19T03:27:40","date_gmt":"2025-04-18T19:27:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/20538.html"},"modified":"2025-04-19T03:27:40","modified_gmt":"2025-04-18T19:27:40","slug":"%e6%9f%a5%e7%9c%8blinux%e7%b3%bb%e7%bb%9f%e7%9a%84%e7%9b%b8%e5%85%b3%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/20538.html","title":{"rendered":"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4"},"content":{"rendered":"<h4>1\u3001\u67e5\u770b\u7cfb\u7edf\u57fa\u672c\u4fe1\u606f<\/h4>\n<p>uname [\u9009\u9879]<br \/>\n-a  \u663e\u793a\u6240\u6709\u7684\u4fe1\u606f<br \/>\n-s  \u663e\u793a\u5185\u6838\u4fe1\u606f<br \/>\n-r  \u663e\u793a\u5185\u6838\u7248\u672c<br \/>\n-o  \u663e\u793a\u64cd\u4f5c\u7cfb\u7edf\u540d\u79f0<br \/>\n-m  \u786c\u4ef6\u67b6\u6784 <\/p>\n<h4>2\u3001\u67e5\u770bcpu\u76f8\u5173\u4fe1\u606f<\/h4>\n<p>lscpu<br \/>\n\u200b <\/p>\n<h4>3\u3001\u67e5\u770b\u5185\u5b58\u76f8\u5173\u4fe1\u606f<\/h4>\n<p>free [\u9009\u9879]<br \/>\n-m  \u4ee5m\u4e3a\u5355\u4f4d\u663e\u793a<br \/>\n-h  \u4ee5\u4eba\u7c7b\u53ef\u8bfb\u663e\u793a <\/p>\n<h4>4\u3001\u7cfb\u7edf\u5b9e\u65f6\u72b6\u6001<\/h4>\n<p>top\u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u5730\u663e\u793a\u7cfb\u7edf\u7684\u8fdb\u7a0b\u72b6\u6001&#xff0c;\u5982CPU\u5360\u7528\u7387\u3001\u5185\u5b58\u5360\u7528\u7387\u3001\u8fd0\u884c\u65f6\u95f4<br \/>\n\u200b<br \/>\ntop [\u9009\u9879]<br \/>\ntop -d 5 \u00a0 \u00a0#  \u8bbe\u7f6e\u4e94\u79d2\u5237\u65b0\u4e00\u6b21  <\/p>\n<h4>5\u3001\u7f51\u7edc\u8fde\u63a5\u76f8\u5173\u4fe1\u606f<\/h4>\n<p>netstat\u53ef\u4ee5\u663e\u793a\u6d3b\u52a8\u7684TCP\\\\UDP\u8fde\u63a5\u3001\u76d1\u542c\u7684\u7aef\u53e3\u3001\u8def\u7531\u8868\u3001\u63a5\u53e3\u7edf\u8ba1\u3001\u591a\u64ad\u6210\u5458<br \/>\n\u200b<br \/>\nnetstat [\u9009\u9879]<br \/>\n\u200b<br \/>\n-a  \u76d1\u542ctcp\u548cudp\u7684\u7aef\u53e3 <\/p>\n<h4>6\u3001\u78c1\u76d8\u5206\u533a\u4fe1\u606f<\/h4>\n<p>fdisk  \u547d\u4ee4<br \/>\n\u200b<br \/>\n#\u5217\u51fa\u7cfb\u7edf\u4e0a\u6240\u6709\u78c1\u76d8\u5206\u533a\u7684\u4fe1\u606f&#xff0c;\u5305\u62ec\u78c1\u76d8\u8bbe\u5907\u3001\u5206\u533a\u7c7b\u578b\u548c\u5206\u533a\u5927\u5c0f\u7b49<br \/>\n\u200b<br \/>\n\u200b <\/p>\n<h4>7\u3001\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5<\/h4>\n<p> df \u547d\u4ee4 \u00a0 \u7cfb\u7edf\u7684\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5&#xff0c;\u5305\u62ec\u603b\u5bb9\u91cf\u3001\u5df2\u7528\u7a7a\u95f4\u3001\u53ef\u7528\u7a7a\u95f4\u3001\u4f7f\u7528\u767e\u5206\u6bd4\u7b49<br \/>\n df [\u9009\u9879]<\/p>\n<p> -h \u4ee5\u4eba\u7c7b\u53ef\u8bfb\u663e\u793a<br \/>\n -T \u663e\u793a\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<br \/>\n -a  \u663e\u793a\u6240\u6709\u6587\u4ef6\u7cfb\u7edf  \u5305\u62ec\u7279\u6b8a\u7684 <\/p>\n<h4>8\u3001\u7cfb\u7edf\u4e3b\u673a\u4fe1\u606f<\/h4>\n<p>hostnamectl [\u9009\u9879] \u00a0  \u67e5\u770b\u548c\u8bbe\u7f6e\u7cfb\u7edf\u7684\u4e3b\u673a\u540d&#xff0c;\u5305\u62ec\u4e3b\u673a\u540d\u3001\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3001\u67b6\u6784\u548c\u7cfb\u7edf\u65f6\u533a\u7b49\u4fe1\u606f\u3002<br \/>\n\u200b<br \/>\nhostnamestl status \u00a0 #\u663e\u793a\u4e3b\u673a\u540d \u64cd\u4f5c\u7cfb\u7edf \u67b6\u6784\u7b49\u4fe1\u606f <\/p>\n<h4>9\u3001\u67e5\u770b\u7aef\u53e3\u547d\u4ee4<\/h4>\n<p>lsof<br \/>\n\u200b<br \/>\n\u627e\u5230\u4f7f\u75288081\u7aef\u53e3\u7684\u8fdb\u7a0b&#xff1a;lsof -i:8081<br \/>\n\u200b<br \/>\n\u627e\u5230\u4f7f\u75288081 tcp\u7aef\u53e3\u7684\u8fdb\u7a0b&#xff1a;# lsof -i tcp:8081<br \/>\n\u200b<br \/>\n\u627e\u5230\u4f7f\u75288081 udp\u7aef\u53e3\u7684\u8fdb\u7a0b&#xff1a;# lsof -i udp:8081<br \/>\n\u200b<br \/>\nnetstat<br \/>\n\u200b<br \/>\nnetstat \u547d\u4ee4\u7528\u4e8e\u663e\u793a\u7f51\u7edc\u72b6\u6001\u3002<br \/>\n\u200b<br \/>\n\u67e5\u8be2\u67d0\u4e2a\u4f7f\u75288081\u7aef\u53e3\u53f7\u7684\u8fde\u63a5\u548c\u8fdb\u7a0b\u53f7\u4fe1\u606f&#xff1a;netstat -antp | grep 8081<br \/>\n\u200b<br \/>\ntelnet<br \/>\n\u200b<br \/>\n\u8fd9\u4e2a\u547d\u4ee4\u53ef\u80fd\u7cfb\u7edf\u91cc\u4e5f\u6ca1\u6709\u81ea\u5e26&#xff0c;\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e0b&#xff0c;CentOS\u7cfb\u7edf\u7684\u8bdd\u5b89\u88c5\u4e5f\u5f88\u7b80\u5355&#xff0c;\u5b89\u88c5\u547d\u4ee4&#xff1a;yum install telnet &#xff0c;\u7136\u540e\u4e00\u8defy\u3002<br \/>\n\u200b<br \/>\n\u8f93\u5165telnet\u6d4b\u8bd5\u7aef\u53e3\u547d\u4ee4&#xff1a; telnet IP \u7aef\u53e3 \u6216\u8005 telnet \u57df\u540d \u7aef\u53e3&#xff0c;\u56de\u8f66<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.3k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u5e38\u4f7f\u7528\u547d\u4ee4\u2014\u2014\u67e5\u770b\u7cfb\u7edf\u7684\u57fa\u672c\u914d\u7f6e\u3001\u57fa\u672c\u4fe1\u606f_linux\u67e5\u770b\u914d\u7f6e<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-20538","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/20538.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.3k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u5e38\u4f7f\u7528\u547d\u4ee4\u2014\u2014\u67e5\u770b\u7cfb\u7edf\u7684\u57fa\u672c\u914d\u7f6e\u3001\u57fa\u672c\u4fe1\u606f_linux\u67e5\u770b\u914d\u7f6e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/20538.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T19:27:40+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20538.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/20538.html\",\"name\":\"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T19:27:40+00:00\",\"dateModified\":\"2025-04-18T19:27:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/20538.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/20538.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20538.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/20538.html","og_locale":"zh_CN","og_type":"article","og_title":"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.3k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u5e38\u4f7f\u7528\u547d\u4ee4\u2014\u2014\u67e5\u770b\u7cfb\u7edf\u7684\u57fa\u672c\u914d\u7f6e\u3001\u57fa\u672c\u4fe1\u606f_linux\u67e5\u770b\u914d\u7f6e","og_url":"https:\/\/www.wsisp.com\/helps\/20538.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T19:27:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/20538.html","url":"https:\/\/www.wsisp.com\/helps\/20538.html","name":"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T19:27:40+00:00","dateModified":"2025-04-18T19:27:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/20538.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/20538.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/20538.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u67e5\u770blinux\u7cfb\u7edf\u7684\u76f8\u5173\u914d\u7f6e\u547d\u4ee4"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=20538"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20538\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=20538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=20538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=20538"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=20538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}