{"id":1005,"date":"2024-12-06T09:48:37","date_gmt":"2024-12-06T01:48:37","guid":{"rendered":"https:\/\/127.0.0.1\/?p=1005"},"modified":"2025-09-24T22:48:25","modified_gmt":"2025-09-24T14:48:25","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8htop%e4%ba%a4%e4%ba%92%e5%bc%8f%e7%9a%84%e8%bf%9b%e7%a8%8b%e6%9f%a5%e7%9c%8b%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/silky.cn\/?p=1005","title":{"rendered":"\u5982\u4f55\u4f7f\u7528Htop\u4ea4\u4e92\u5f0f\u7684\u8fdb\u7a0b\u67e5\u770b\u5de5\u5177"},"content":{"rendered":"<p>Htop \u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u8fdb\u7a0b\u67e5\u770b\u5de5\u5177\uff0c\u9002\u7528\u4e8e Linux \u7cfb\u7edf\u3002\u5b83\u63d0\u4f9b\u4e86\u6bd4\u4f20\u7edf\u7684 `top` \u547d\u4ee4\u66f4\u53cb\u597d\u7684\u754c\u9762\u548c\u66f4\u591a\u7684\u529f\u80fd\uff0c\u5982\u5f69\u8272\u663e\u793a\u3001\u9f20\u6807\u64cd\u4f5c\u3001\u5b9e\u65f6\u66f4\u65b0\u7b49\u3002<\/p>\n<p><strong>\u5b89\u88c5<\/strong><\/p>\n<p>\u5728\u5927\u591a\u6570 Linux \u53d1\u884c\u7248\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5 htop\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u53d1\u884c\u7248\u7684\u5b89\u88c5\u65b9\u6cd5\uff1a<\/p>\n<p>Ubuntu\/Debian\uff1a<\/p>\n<p>sudo apt update<\/p>\n<p>sudo apt install htop<\/p>\n<p>&nbsp;<\/p>\n<p>CentOS\/RHEL\uff1a<\/p>\n<p>sudo yum install epel-release<\/p>\n<p>sudo yum install htop<\/p>\n<p>&nbsp;<\/p>\n<p>Arch Linux\uff1a<\/p>\n<p>sudo pacman -S htop<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u57fa\u672c\u4f7f\u7528<\/strong><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u76f4\u63a5\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165 `htop` \u542f\u52a8\u3002<\/p>\n<p>\u67e5\u770b\u8f6f\u4ef6\u7248\u672c\uff1a<\/p>\n<p>htop &#8211;version<\/p>\n<p>\u8fd0\u884c htop\uff1a<\/p>\n<p>htop<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u754c\u9762\u8bf4\u660e<\/strong><\/p>\n<p>\u9876\u90e8\u533a\u57df\uff1a\u663e\u793a\u7cfb\u7edf\u603b\u4f53\u4fe1\u606f\uff0c\u5982 CPU \u4f7f\u7528\u7387\u3001\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3001\u4ea4\u6362\u7a7a\u95f4\u7b49\u3002<\/p>\n<p>\u4e2d\u95f4\u533a\u57df\uff1a\u663e\u793a\u8fdb\u7a0b\u5217\u8868\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u5360\u636e\u4e00\u884c\uff0c\u663e\u793a\u8fdb\u7a0b ID\u3001\u8fdb\u7a0b\u540d\u3001\u7528\u6237\u3001CPU \u4f7f\u7528\u7387\u3001\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u7b49\u3002<\/p>\n<p>\u5e95\u90e8\u533a\u57df\uff1a\u663e\u793a\u5feb\u6377\u952e\u5e2e\u52a9\u4fe1\u606f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5e38\u7528\u5feb\u6377\u952e<\/strong><\/p>\n<p>F1\uff1a\u5e2e\u52a9\u9875\u9762\uff0c\u663e\u793a\u5feb\u6377\u952e\u548c\u547d\u4ee4\u7684\u7b80\u8981\u8bf4\u660e\u3002<\/p>\n<p>F2\uff1a\u8fdb\u5165\u8bbe\u7f6e\u9875\u9762\uff0c\u914d\u7f6e htop \u7684\u5404\u79cd\u53c2\u6570\u548c\u663e\u793a\u9009\u9879\u3002<\/p>\n<p>F3\uff1a\u8fdb\u7a0b\u641c\u7d22\uff0c\u8f93\u5165\u5173\u952e\u8bcd\u53ef\u4ee5\u641c\u7d22\u5b9a\u4f4d\u51fa\u5305\u542b\u8be5\u5173\u952e\u8bcd\u7684\u8fdb\u7a0b\u3002<\/p>\n<p>F4\uff1a\u8fdb\u5165\u7b5b\u9009\u6a21\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u7279\u5b9a\u7684\u6761\u4ef6\u7b5b\u9009\u663e\u793a\u7684\u8fdb\u7a0b\u3002<\/p>\n<p>F5\uff1a\u663e\u793a\u8fdb\u7a0b\u6811\u3002<\/p>\n<p>F6\uff1a\u6392\u5e8f\u6a21\u5f0f\uff0c\u53ef\u4ee5\u9009\u62e9\u6309\u7167 CPU \u4f7f\u7528\u7387\u3001\u5185\u5b58\u4f7f\u7528\u91cf\u7b49\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p>F9\uff1a\u6740\u6b7b\u9009\u4e2d\u7684\u8fdb\u7a0b\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u9009\u9879\u6765\u5bf9\u8fdb\u7a0b\u8fdb\u884c\u64cd\u4f5c\uff0c\u5982\u5f3a\u5236\u7ec8\u6b62\u7b49\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u53c2\u6570\u8bbe\u7f6e<\/strong><\/p>\n<p>\u66f4\u65b0\u901f\u7387\uff1a<\/p>\n<p>htop -d &lt;delay&gt;<\/p>\n<p>\u6811\u72b6\u89c6\u56fe\uff1a<\/p>\n<p>htop -t<\/p>\n<p>\u6307\u5b9a PID \u76d1\u63a7\uff1a<\/p>\n<p>htop -p &lt;PID&gt;<\/p>\n<p>\u5e2e\u52a9\u4fe1\u606f\uff1a<\/p>\n<p>htop &#8211;help<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u547d\u4ee4\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u4f7f\u7528 htop \u76d1\u63a7\u548c\u7ba1\u7406 Linux \u7cfb\u7edf\u7684\u8fdb\u7a0b\u548c\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span itemprop=\"description\">Htop \u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u8fdb\u7a0b\u67e5\u770b\u5de5\u5177\uff0c\u9002\u7528\u4e8e Linux \u7cfb\u2026 <a class=\"read-more-candy\" href=\"https:\/\/silky.cn\/?p=1005\">\ud83c\udf6c \u56bc\u4e00\u56bc<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70],"class_list":["post-1005","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-htop"],"_links":{"self":[{"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts\/1005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1005"}],"version-history":[{"count":1,"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/silky.cn\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions\/1093"}],"wp:attachment":[{"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/silky.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}