{"id":76138,"date":"2024-01-03T22:59:56","date_gmt":"2024-01-03T14:59:56","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=76138"},"modified":"2024-01-03T22:59:56","modified_gmt":"2024-01-03T14:59:56","slug":"rhzkjcmc","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/76138.html","title":{"rendered":"\u5982\u4f55\u67e5\u770b\u8fdb\u7a0b\u540d\u79f0"},"content":{"rendered":"
\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u67e5\u770b\u8fdb\u7a0b\u540d\u79f0\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u4e86\u89e3\u548c\u7ba1\u7406\u7cfb\u7edf\u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002<\/p>\n
\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 \u8981\u67e5\u770b\u6240\u6709\u8fdb\u7a0b\u7684\u540d\u79f0\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n \u5982\u679c\u9700\u8981\u6839\u636e\u8fdb\u7a0b\u540d\u79f0\u8fdb\u884c\u8fc7\u6ee4\uff0c\u53ef\u4ee5\u7ed3\u5408 \u9664\u4e86\u547d\u4ee4\u884c\u65b9\u5f0f\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u6765\u67e5\u770b\u7cfb\u7edf\u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u540d\u79f0\u3002<\/p>\n \u901a\u8fc7\u4ee5\u4e0a\u4ecb\u7ecd\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528\u547d\u4ee4\u884c\u548c\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u6765\u67e5\u770b\u7cfb\u7edf\u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u540d\u79f0\u3002<\/strong>\u8fd9\u5bf9\u4e8e\u7cfb\u7edf\u7ba1\u7406\u548c\u6545\u969c\u6392\u67e5\u90fd\u81f3\u5173\u91cd\u8981\uff0c\u5e0c\u671b\u672c\u6587\u80fd\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u67e5\u770b\u8fdb\u7a0b\u540d\u79f0\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u4e86\u89e3\u548c\u7ba1\u7406\u7cfb\u7edf\u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u8fdb\u7a0b\u540d\u79f0\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528ps\u547d\u4ee4\u6765\u67e5\u770b<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-76138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/76138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=76138"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/76138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=76138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=76138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=76138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}ps<\/code>\u547d\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u540d\u79f0\u3002<\/p>\n
ps\u547d\u4ee4\u7684\u57fa\u672c\u7528\u6cd5<\/h3>\n
ps -ef<\/code><\/pre>\n
\u6839\u636e\u8fdb\u7a0b\u540d\u79f0\u8fc7\u6ee4<\/h3>\n
grep<\/code>\u547d\u4ee4\u6765\u5b9e\u73b0\uff1a<\/p>\n
ps -ef | grep \"\u8fdb\u7a0b\u540d\u79f0\"<\/code><\/pre>\n
\u4f7f\u7528\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u67e5\u770b\u8fdb\u7a0b\u540d\u79f0<\/h2>\n
top\u547d\u4ee4<\/h3>\n
top<\/code>\u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u663e\u793a\u7cfb\u7edf\u4e2d\u5404\u4e2a\u8fdb\u7a0b\u7684\u60c5\u51b5\uff0c\u5305\u62ec\u8fdb\u7a0b\u540d\u79f0\u3001CPU\u5360\u7528\u7387\u3001\u5185\u5b58\u5360\u7528\u7b49\u4fe1\u606f\u3002<\/p>\n
htop\u547d\u4ee4<\/h3>\n
htop<\/code>\u662f
top<\/code>\u547d\u4ee4\u7684\u589e\u5f3a\u7248\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u4ea4\u4e92\u5f0f\u529f\u80fd\uff0c\u53ef\u4ee5\u66f4\u76f4\u89c2\u5730\u67e5\u770b\u5e76\u7ba1\u7406\u8fdb\u7a0b\u3002<\/p>\n
\u603b\u7ed3<\/h2>\n