{"id":19370,"date":"2022-10-28T17:30:26","date_gmt":"2022-10-28T09:30:26","guid":{"rendered":"http:\/\/gulass.cn\/?p=19370"},"modified":"2022-10-28T17:30:38","modified_gmt":"2022-10-28T09:30:38","slug":"monitorin-system-ubuntu","status":"publish","type":"post","link":"https:\/\/gulass.cn\/monitorin-system-ubuntu.html","title":{"rendered":"\u5982\u4f55\u5728Ubuntu\u4e0a\u4f7f\u7528Glances\u76d1\u63a7\u7cfb\u7edf"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u00a0Glances \u662f\u4e00\u4e2a\u7528\u4e8e\u76d1\u63a7\u7cfb\u7edf\u7684\u8de8\u5e73\u53f0\u3001\u57fa\u4e8e\u6587\u672c\u6a21\u5f0f\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\u5b83\u662f\u7528 Python \u7f16\u5199\u7684\uff0c\u4f7f\u7528 psutil \u5e93\u4ece\u7cfb\u7edf\u83b7\u53d6\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u7528\u5b83\u6765\u76d1\u63a7 CPU\u3001\u5e73\u5747\u8d1f\u8f7d\u3001\u5185\u5b58\u3001\u7f51\u7edc\u63a5\u53e3\u3001\u78c1\u76d8 I\/O\uff0c\u6587\u4ef6\u7cfb\u7edf\u7a7a\u95f4\u5229\u7528\u7387\u3001\u6302\u8f7d\u7684\u8bbe\u5907\u3001\u6240\u6709\u6d3b\u52a8\u8fdb\u7a0b\u4ee5\u53ca\u6d88\u8017\u8d44\u6e90\u6700\u591a\u7684\u8fdb\u7a0b\u3002Glances \u6709\u5f88\u591a\u6709\u8da3\u7684\u9009\u9879\u3002\u5b83\u7684\u4e3b\u8981\u7279\u6027\u4e4b\u4e00\u662f\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u9600\u503c(careful\u5c0f\u5fc3\u3001warning\u8b66\u544a\u3001critical\u81f4\u547d)\uff0c\u7136\u540e\u5b83\u4f1a\u7528\u4e0d\u540c\u989c\u8272\u663e\u793a\u4fe1\u606f\u4ee5\u8868\u660e\u7cfb\u7edf\u7684\u74f6\u9888\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n Glances \u7684\u529f\u80fd<\/strong><\/div>\n \u25c6CPU \u5e73\u5747\u8d1f\u8f7d<\/p>\n \u25c6\u4e0d\u540c\u72b6\u6001(\u5982\u6d3b\u52a8\u3001\u4f11\u7720)\u8fdb\u7a0b\u7684\u6570\u91cf<\/p>\n \u25c6\u6240\u6709\u5185\u5b58\u4fe1\u606f\uff0c\u5982\u7269\u7406\u5185\u5b58\u3001\u4ea4\u6362\u7a7a\u95f4\u3001\u7a7a\u95f2\u5185\u5b58<\/p>\n \u25c6CPU \u4fe1\u606f<\/p>\n \u25c6\u7f51\u7edc\u8fde\u63a5\u7684\u4e0a\u884c\/\u4e0b\u884c\u901f\u5ea6<\/p>\n \u25c6\u78c1\u76d8 I\/O \u8bfb\/\u5199\u901f\u5ea6\u8be6\u7ec6\u4fe1\u606f<\/p>\n \u25c6\u5f53\u524d\u6302\u8f7d\u8bbe\u5907\u7684\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5<\/p>\n \u25c6\u6d88\u8017\u8d44\u6e90\u6700\u591a\u7684\u8fdb\u7a0b\u548c\u4ed6\u4eec\u7684 CPU\/\u5185\u5b58\u4f7f\u7528\u60c5\u51b5<\/p>\n \u5b89\u88c5 Glances<\/strong><\/div>\n Glances \u5728 Ubuntu \u7684\u8f6f\u4ef6\u4ed3\u5e93\u4e2d\uff0c\u6240\u4ee5\u5b89\u88c5\u5f88\u7b80\u5355\u3002\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5 Glances\uff1a<\/p>\n sudo\u00a0apt-get\u00a0install\u00a0glances<\/pre>\n |