{"id":686,"date":"2016-04-04T16:49:45","date_gmt":"2016-04-04T08:49:45","guid":{"rendered":"http:\/\/www.shuran.cn\/?p=686"},"modified":"2016-04-06T16:34:17","modified_gmt":"2016-04-06T08:34:17","slug":"linux%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e7%9b%91%e6%8e%a7%e7%bd%91%e7%bb%9c%e5%b8%a6%e5%ae%bd%e7%9a%8418%e4%b8%aa%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.shuran.cn\/?p=686","title":{"rendered":"Linux\u670d\u52a1\u5668\u4e0a\u76d1\u63a7\u7f51\u7edc\u5e26\u5bbd\u768418\u4e2a\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<p>\n\t\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e9b\u53ef\u4ee5\u7528\u6765\u76d1\u63a7\u7f51\u7edc\u4f7f\u7528\u60c5\u51b5\u7684Linux\u547d\u4ee4\u884c\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u76d1\u63a7\u901a\u8fc7\u7f51\u7edc\u63a5\u53e3\u4f20\u8f93\u7684\u6570\u636e\uff0c\u5e76\u6d4b\u91cf\u76ee\u524d\u54ea\u4e9b\u6570\u636e\u6240\u4f20\u8f93\u7684\u901f\u5ea6\u3002\u5165\u7ad9\u6d41\u91cf\u548c\u51fa\u7ad9\u6d41\u91cf\u5206\u5f00\u6765\u663e\u793a\u3002\n<\/p>\n<p>\n\t\u4e00\u4e9b\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u5355\u4e2a\u8fdb\u7a0b\u6240\u4f7f\u7528\u7684\u5e26\u5bbd\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u7528\u6237\u5f88\u5bb9\u6613\u53d1\u73b0\u8fc7\u5ea6\u4f7f\u7528\u7f51\u7edc\u5e26\u5bbd\u7684\u67d0\u4e2a\u8fdb\u7a0b\u3002\n<\/p>\n<p>\n\t\u8fd9\u4e9b\u5de5\u5177\u4f7f\u7528\u4e0d\u540c\u7684\u673a\u5236\u6765\u5236\u4f5c\u6d41\u91cf\u62a5\u544a\u3002nload\u7b49\u4e00\u4e9b\u5de5\u5177\u53ef\u4ee5\u8bfb\u53d6\"proc\/net\/dev\"\u6587\u4ef6\uff0c\u4ee5\u83b7\u5f97\u6d41\u91cf\u7edf\u8ba1\u4fe1\u606f\uff1b\u800c\u4e00\u4e9b\u5de5\u5177\u4f7f\u7528pcap\u5e93\u6765\u6355\u83b7\u6240\u6709\u6570\u636e\u5305\uff0c\u7136\u540e\u8ba1\u7b97\u603b\u6570\u636e\u91cf\uff0c\u4ece\u800c\u4f30\u8ba1\u6d41\u91cf\u8d1f\u8f7d\u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u662f\u6309\u529f\u80fd\u5212\u5206\u7684\u547d\u4ee4\u540d\u79f0\u3002\n<\/p>\n<ul>\n<li>\n\t\t\u76d1\u63a7\u603b\u4f53\u5e26\u5bbd\u4f7f\u7528\u2015\u2015nload\u3001bmon\u3001slurm\u3001bwm-ng\u3001cbm\u3001speedometer\u548cnetload\n\t<\/li>\n<li>\n\t\t\u76d1\u63a7\u603b\u4f53\u5e26\u5bbd\u4f7f\u7528\uff08\u6279\u91cf\u5f0f\u8f93\u51fa\uff09\u2015\u2015vnstat\u3001ifstat\u3001dstat\u548ccollectl\n\t<\/li>\n<li>\n\t\t\u6bcf\u4e2a\u5957\u63a5\u5b57\u8fde\u63a5\u7684\u5e26\u5bbd\u4f7f\u7528\u2015\u2015iftop\u3001iptraf\u3001tcptrack\u3001pktstat\u3001netwatch\u548ctrafshow\n\t<\/li>\n<li>\n\t\t\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u5e26\u5bbd\u4f7f\u7528\u2015\u2015nethogs\n\t<\/li>\n<\/ul>\n<p>\n\t1. nload\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s3.51cto.com\/wyfs02\/M01\/23\/EC\/wKioL1NHVHaTuJsxAACnounWlRE088.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s3.51cto.com\/wyfs02\/M01\/23\/EC\/wKioL1NHVHaTuJsxAACnounWlRE088.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\tnload\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u5206\u5f00\u6765\u76d1\u63a7\u5165\u7ad9\u6d41\u91cf\u548c\u51fa\u7ad9\u6d41\u91cf\u3002\u5b83\u8fd8\u53ef\u4ee5\u7ed8\u5236\u56fe\u8868\u4ee5\u663e\u793a\u5165\u7ad9\u6d41\u91cf\u548c\u51fa\u7ad9\u6d41\u91cf\uff0c\u89c6\u56fe\u6bd4\u4f8b\u53ef\u4ee5\u8c03\u6574\u3002\u7528\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u4e0d\u652f\u6301\u8bb8\u591a\u9009\u9879\u3002\n<\/p>\n<p>\n\t\u6240\u4ee5\uff0c\u5982\u679c\u4f60\u53ea\u9700\u8981\u5feb\u901f\u67e5\u770b\u603b\u5e26\u5bbd\u4f7f\u7528\u60c5\u51b5\uff0c\u65e0\u9700\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u8be6\u7ec6\u60c5\u51b5\uff0c\u90a3\u4e48nload\u7528\u8d77\u6765\u5f88\u65b9\u4fbf\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">$ nload<\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u5b89\u88c5nload\uff1aFedora\u548cUbuntu\u5728\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\u91cc\u9762\u5c31\u6709nload\u3002CentOS\u7528\u6237\u5219\u9700\u8981\u4eceEpel\u8f6f\u4ef6\u5e93\u83b7\u5f97nload\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\"># fedora\u6216centos  \r\n$ yum install nload -y  \r\n# ubuntu\/debian  \r\n$ sudo apt-get install nload <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t2. iftop\n<\/p>\n<p>\n\tiftop\u53ef\u6d4b\u91cf\u901a\u8fc7\u6bcf\u4e00\u4e2a\u5957\u63a5\u5b57\u8fde\u63a5\u4f20\u8f93\u7684\u6570\u636e\uff1b\u5b83\u91c7\u7528\u7684\u5de5\u4f5c\u65b9\u5f0f\u6709\u522b\u4e8enload\u3002iftop\u4f7f\u7528pcap\u5e93\u6765\u6355\u83b7\u8fdb\u51fa\u7f51\u7edc\u9002\u914d\u5668\u7684\u6570\u636e\u5305\uff0c\u7136\u540e\u6c47\u603b\u6570\u636e\u5305\u5927\u5c0f\u548c\u6570\u91cf\uff0c\u641e\u6e05\u695a\u603b\u7684\u5e26\u5bbd\u4f7f\u7528\u60c5\u51b5\u3002\n<\/p>\n<p>\n\t\u867d\u7136iftop\u62a5\u544a\u6bcf\u4e2a\u8fde\u63a5\u6240\u4f7f\u7528\u7684\u5e26\u5bbd\uff0c\u4f46\u5b83\u65e0\u6cd5\u62a5\u544a\u53c2\u4e0e\u67d0\u4e2a\u5957\u6309\u5b57\u8fde\u63a5\u7684\u8fdb\u7a0b\u540d\u79f0\/\u7f16\u53f7\uff08ID\uff09\u3002\u4e0d\u8fc7\u7531\u4e8e\u57fa\u4e8epcap\u5e93\uff0ciftop\u80fd\u591f\u8fc7\u6ee4\u6d41\u91cf\uff0c\u5e76\u62a5\u544a\u7531\u8fc7\u6ee4\u5668\u6307\u5b9a\u7684\u6240\u9009\u5b9a\u4e3b\u673a\u8fde\u63a5\u7684\u5e26\u5bbd\u4f7f\u7528\u60c5\u51b5\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">$ sudo iftop -n  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\tn\u9009\u9879\u53ef\u4ee5\u9632\u6b62iftop\u5c06IP\u5730\u5740\u89e3\u6790\u6210\u4e3b\u673a\u540d\uff0c\u89e3\u6790\u672c\u8eab\u5c31\u4f1a\u5e26\u6765\u989d\u5916\u7684\u7f51\u7edc\u6d41\u91cf\u3002\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s6.51cto.com\/wyfs02\/M00\/23\/EC\/wKioL1NHVL7jY7HHAAEgRTrhrLQ996.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s6.51cto.com\/wyfs02\/M00\/23\/EC\/wKioL1NHVL7jY7HHAAEgRTrhrLQ996.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5iftop\uff1aUbuntu\/Debian\/Fedora\u7528\u6237\u53ef\u4ee5\u4ece\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\u83b7\u5f97\u5b83\u3002CentOS\u7528\u6237\u53ef\u4ee5\u4eceEpel\u83b7\u5f97\u5b83\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\"># fedora\u6216centos  \r\nyum install iftop -y  \r\n# ubuntu\u6216 debian  \r\n$ sudo apt-get install iftop  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t3. iptraf\n<\/p>\n<p>\n\tiptraf\u662f\u4e00\u6b3e\u4ea4\u4e92\u5f0f\u3001\u8272\u5f69\u9c9c\u8273\u7684IP\u5c40\u57df\u7f51\u76d1\u63a7\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u663e\u793a\u6bcf\u4e2a\u8fde\u63a5\u4ee5\u53ca\u4e3b\u673a\u4e4b\u95f4\u4f20\u8f93\u7684\u6570\u636e\u91cf\u3002\u4e0b\u9762\u662f\u5c4f\u5e55\u622a\u56fe\u3002\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s9.51cto.com\/wyfs02\/M01\/23\/EC\/wKioL1NHVOOQnZFBAAFTsbjcf4s270.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s9.51cto.com\/wyfs02\/M01\/23\/EC\/wKioL1NHVOOQnZFBAAFTsbjcf4s270.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p style=\"text-align:center;\">\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">$ sudo iptraf  <\/pre>\n<div style=\"text-align:left;\">\n\t\n<\/div>\n<p>\n\t\n<\/p>\n<p>\n\t\u5b89\u88c5iptraf\uff1a<span style=\"line-height:1.5;color:inherit;\"><\/span>\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\"># Centos\uff08\u57fa\u672c\u8f6f\u4ef6\u5e93\uff09  \r\n$ yum install iptraf  \r\n# fedora\u6216centos\uff08\u5e26epel\uff09  \r\n$ yum install iptraf-ng -y  \r\n# ubuntu\u6216debian  \r\n$ sudo apt-get install iptraf iptraf-ng <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t4. nethogs\n<\/p>\n<p>\n\tnethogs\u662f\u4e00\u6b3e\u5c0f\u5de7\u7684\"net top\"\u5de5\u5177\uff0c\u53ef\u4ee5\u663e\u793a\u6bcf\u4e2a\u8fdb\u7a0b\u6240\u4f7f\u7528\u7684\u5e26\u5bbd\uff0c\u5e76\u5bf9\u5217\u8868\u6392\u5e8f\uff0c\u5c06\u8017\u7528\u5e26\u5bbd\u6700\u591a\u7684\u8fdb\u7a0b\u6392\u5728\u6700\u4e0a\u9762\u3002\u4e07\u4e00\u51fa\u73b0\u5e26\u5bbd\u4f7f\u7528\u7a81\u7136\u6fc0\u589e\u7684\u60c5\u51b5\uff0c\u7528\u6237\u8fc5\u901f\u6253\u5f00nethogs\uff0c\u5c31\u53ef\u4ee5\u627e\u5230\u5bfc\u81f4\u5e26\u5bbd\u4f7f\u7528\u6fc0\u589e\u7684\u8fdb\u7a0b\u3002nethogs\u53ef\u4ee5\u62a5\u544a\u7a0b\u5e8f\u7684\u8fdb\u7a0b\u7f16\u53f7\uff08PID\uff09\u3001\u7528\u6237\u548c\u8def\u5f84\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ sudo nethogs  <\/pre>\n<p>\n\t\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s3.51cto.com\/wyfs02\/M00\/23\/ED\/wKiom1NHVS2xISHlAACzFEY_TXk705.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s3.51cto.com\/wyfs02\/M00\/23\/ED\/wKiom1NHVS2xISHlAACzFEY_TXk705.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5nethogs\uff1aUbuntu\u3001Debian\u548cFedora\u7528\u6237\u53ef\u4ee5\u4ece\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\u83b7\u5f97\u3002CentOS\u7528\u6237\u5219\u9700\u8981Epel\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu\u6216debian\uff08\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\uff09  \r\n$ sudo apt-get install nethogs  \r\n# fedora\u6216centos\uff08\u6765\u81eaepel\uff09  \r\n$ sudo yum install nethogs -y  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t5. bmon\n<\/p>\n<p>\n\tbmon\uff08\u5e26\u5bbd\u76d1\u63a7\u5668\uff09\u662f\u4e00\u6b3e\u7c7b\u4f3cnload\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u663e\u793a\u7cfb\u7edf\u4e0a\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u6d41\u91cf\u8d1f\u8f7d\u3002\u8f93\u51fa\u7ed3\u679c\u8fd8\u542b\u6709\u56fe\u8868\u548c\u5256\u9762\uff0c\u9644\u6709\u6570\u636e\u5305\u5c42\u9762\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s3.51cto.com\/wyfs02\/M02\/23\/ED\/wKiom1NHVY3jnEy6AADs1KELymM553.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s3.51cto.com\/wyfs02\/M02\/23\/ED\/wKiom1NHVY3jnEy6AADs1KELymM553.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5bmon\uff1aUbuntu\u3001Debian\u548cFedora\u7528\u6237\u53ef\u4ee5\u4ece\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\u6765\u5b89\u88c5\u3002CentOS\u7528\u6237\u5219\u9700\u8981\u5b89\u88c5repoforge\uff0c\u56e0\u4e3aEpel\u91cc\u9762\u6ca1\u6709bmon\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu\u6216debian  \r\n$ sudo apt-get install bmon  \r\n# fedora\u6216centos\uff08\u6765\u81earepoforge\uff09  \r\n$ sudo yum install bmon<\/pre>\n<p>\n\t\n<\/p>\n<p>\n\tbmon\u652f\u6301\u8bb8\u591a\u9009\u9879\uff0c\u80fd\u591f\u5236\u4f5cHTML\u683c\u5f0f\u7684\u62a5\u544a\u3002\u6b32\u77e5\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u53c2\u8003\u624b\u518c\u9875\u3002\n<\/p>\n<p>\n\t6. slurm\n<\/p>\n<p>\n\tslurm\u662f\u53e6\u4e00\u6b3e\u7f51\u7edc\u8d1f\u8f7d\u76d1\u63a7\u5668\uff0c\u53ef\u4ee5\u663e\u793a\u8bbe\u5907\u7684\u7edf\u8ba1\u4fe1\u606f\uff0c\u8fd8\u80fd\u663e\u793aASCII\u56fe\u5f62\u3002\u5b83\u652f\u6301\u4e09\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u56fe\u5f62\uff0c\u4f7f\u7528c\u952e\u3001s\u952e\u548cl\u952e\u5373\u53ef\u6fc0\u6d3b\u6bcf\u79cd\u56fe\u5f62\u3002slurm\u529f\u80fd\u7b80\u5355\uff0c\u65e0\u6cd5\u663e\u793a\u5173\u4e8e\u7f51\u7edc\u8d1f\u8f7d\u7684\u4efb\u4f55\u66f4\u8fdb\u4e00\u6b65\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ slurm -s -i eth0  <\/pre>\n<p>\n\t\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s9.51cto.com\/wyfs02\/M00\/23\/ED\/wKiom1NHVa3gzLatAADeZkAp-MI754.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s9.51cto.com\/wyfs02\/M00\/23\/ED\/wKiom1NHVa3gzLatAADeZkAp-MI754.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5slurm\n<\/p>\n<pre class=\"prettyprint lang-js\"># debian\u6216ubuntu  \r\n$ sudo apt-get install slurm  \r\n# fedora\u6216centos  \r\n$ sudo yum install slurm -y  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t7. tcptrack\n<\/p>\n<p>\n\ttcptrack\u7c7b\u4f3ciftop\uff0c\u4f7f\u7528pcap\u5e93\u6765\u6355\u83b7\u6570\u636e\u5305\uff0c\u5e76\u8ba1\u7b97\u5404\u79cd\u7edf\u8ba1\u4fe1\u606f\uff0c\u6bd4\u5982\u6bcf\u4e2a\u8fde\u63a5\u6240\u4f7f\u7528\u7684\u5e26\u5bbd\u3002\u5b83\u8fd8\u652f\u6301\u6807\u51c6\u7684pcap\u8fc7\u6ee4\u5668\uff0c\u8fd9\u4e9b\u8fc7\u6ee4\u5668\u53ef\u7528\u6765\u76d1\u63a7\u7279\u5b9a\u7684\u8fde\u63a5\u3002\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s5.51cto.com\/wyfs02\/M01\/23\/ED\/wKiom1NHVdejRZBLAAGcN1fyUAo420.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s5.51cto.com\/wyfs02\/M01\/23\/ED\/wKiom1NHVdejRZBLAAGcN1fyUAo420.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5tcptrack\uff1aUbuntu\u3001Debian\u548cFedora\u5728\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\u91cc\u9762\u5c31\u6709\u5b83\u3002CentOS\u7528\u6237\u5219\u9700\u8981\u4eceRepoForge\u83b7\u5f97\u5b83\uff0c\u56e0\u4e3aEpel\u91cc\u9762\u6ca1\u6709\u5b83\u3002\n<\/p>\n<p>\n\t\u4f7f\u7528Tcptrack\n<\/p>\n<p>\n\t\u53ea\u6709\u8d85\u7ea7\u7528\u6237\uff08\u7279\u6743\u7528\u6237\uff09\u624d\u80fd\u8fd0\u884cTcptrack\uff0c\u5176\u57fa\u672c\u7684\u4f7f\u7528\u65b9\u6cd5\u662f\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a\n<\/p>\n<p>\n\t# tcptrack -i\n<\/p>\n<p>\n\t\u4f8b\u5982\uff1a# tcptrack -i eth1\n<\/p>\n<p>\n\t\u6b64\u540e\uff0cTcptrack\u5c31\u4f1a\u8fd0\u884c\uff0c\u5e76\u6355\u6349\u6240\u6709\u7684TCP\u8fde\u63a5\uff0c\u5e76\u5411\u7528\u6237\u663e\u793a\u8fd9\u4e9b\u4fe1\u606f\u3002\u3002\u5176\u5b83\u7684\u53ef\u9009\u9879\u5305\u62ec-r\u548cport\u3002-r\u4f7f\u5f97Tcptrack\u5728\u6e05\u9664\u5173\u95ed\u7684\u8fde\u63a5\u4e4b\u7b49\u5f85\u4e00\u4e2a\u6307\u5b9a\u7684\u65f6\u95f4\uff08\u4ee5\u79d2\u8ba1\uff09\u3002\u4f8b\u5982\uff1a\n<\/p>\n<p>\n\t# tcptrack -i eth0 -r 10\n<\/p>\n<p>\n\tPort\u4f1a\u6839\u636e\u7aef\u53e3\u53f7\u5b9e\u65bd\u8fc7\u6ee4\u3002\u4f8b\u5982\uff1a\n<\/p>\n<p>\n\t# tcptrack -i eth1 port 22\n<\/p>\n<p>\n\t\u518d\u5982\uff1a#tcptrack -i eth0 port 80\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu, debian  \r\n$ sudo apt-get install tcptrack  \r\n# fedora, centos\uff08\u6765\u81earepoforge\u8f6f\u4ef6\u5e93\uff09  \r\n$ sudo yum install tcptrack  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t8. vnstat\n<\/p>\n<p>\n\tvnstat\u4e0e\u53e6\u5916\u5927\u591a\u6570\u5de5\u5177\u6709\u70b9\u4e0d\u4e00\u6837\u3002\u5b83\u5b9e\u9645\u4e0a\u8fd0\u884c\u540e\u53f0\u670d\u52a1\/\u5b88\u62a4\u8fdb\u7a0b\uff0c\u59cb\u7ec8\u4e0d\u505c\u5730\u8bb0\u5f55\u6240\u4f20\u8f93\u6570\u636e\u7684\u5927\u5c0f\u3002\u4e4b\u5916\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5236\u4f5c\u663e\u793a\u7f51\u7edc\u4f7f\u7528\u5386\u53f2\u60c5\u51b5\u7684\u62a5\u544a\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ service vnstat status  \r\n* vnStat daemon is running  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u8fd0\u884c\u6ca1\u6709\u4efb\u4f55\u9009\u9879\u7684vnstat\uff0c\u53ea\u4f1a\u663e\u793a\u81ea\u5b88\u62a4\u8fdb\u7a0b\u8fd0\u884c\u4ee5\u6765\u6240\u4f20\u8f93\u7684\u6570\u636e\u603b\u91cf\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ vnstat  \r\nDatabase updated: Mon Mar 17 15:26:59 2014  \r\neth0 since 06\/12\/13  \r\nrx:  135.14 GiB      tx:  35.76 GiB      total:  170.90 GiB  \r\nmonthly  \r\nrx      |     tx      |    total    |   avg. rate  \r\n  \r\n------------------------+-------------+-------------+-------------  \r\nFeb '14      8.19 GiB  |    2.08 GiB  |   10.27 GiB |   35.60 kbit\/s  \r\nMar '14      4.98 GiB  |    1.52 GiB  |    6.50 GiB |   37.93 kbit\/s  \r\n------------------------+-------------+-------------+-------------  \r\nestimated       9.28 GiB |    2.83 GiB  |   12.11 GiB |  \r\ndaily  \r\nrx      |     tx      |    total    |   avg. rate  \r\n------------------------+-------------+-------------+-------------  \r\nyesterday     236.11 MiB |   98.61 MiB |  334.72 MiB |   31.74 kbit\/s  \r\ntoday    128.55 MiB |   41.00 MiB |  169.56 MiB |   24.97 kbit\/s  \r\n------------------------+-------------+-------------+-------------  \r\nestimated       199 MiB |      63 MiB |     262 MiB | &nbsp;<\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u60f3\u5b9e\u65f6\u76d1\u63a7\u5e26\u5bbd\u4f7f\u7528\u60c5\u51b5\uff0c\u8bf7\u4f7f\u7528\"-l\"\u9009\u9879\uff08\u5b9e\u65f6\u6a21\u5f0f\uff09\u3002\u7136\u540e\uff0c\u5b83\u4f1a\u663e\u793a\u5165\u7ad9\u6570\u636e\u548c\u51fa\u7ad9\u6570\u636e\u6240\u4f7f\u7528\u7684\u603b\u5e26\u5bbd\u91cf\uff0c\u4f46\u975e\u5e38\u7cbe\u786e\u5730\u663e\u793a\uff0c\u6ca1\u6709\u5173\u4e8e\u4e3b\u673a\u8fde\u63a5\u6216\u8fdb\u7a0b\u7684\u4efb\u4f55\u5185\u90e8\u8be6\u7ec6\u4fe1\u606f\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">$ vnstat -l -i eth0  \r\nMonitoring eth0...    (press CTRL-C to stop)  \r\nrx:       12 kbit\/s    10 p\/s          tx:       12 kbit\/s    11 p\/s  <\/pre>\n<p>\nvnstat\u66f4\u50cf\u662f\u4e00\u6b3e\u5236\u4f5c\u5386\u53f2\u62a5\u544a\u7684\u5de5\u5177\uff0c\u663e\u793a\u6bcf\u5929\u6216\u8fc7\u53bb\u4e00\u4e2a\u6708\u4f7f\u7528\u4e86\u591a\u5c11\u5e26\u5bbd\u3002\u5b83\u5e76\u4e0d\u662f\u4e25\u683c\u610f\u4e49\u4e0a\u7684\u5b9e\u65f6\u76d1\u63a7\u7f51\u7edc\u7684\u5de5\u5177\u3002<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tvnstat\u652f\u6301\u8bb8\u591a\u9009\u9879\uff0c\u652f\u6301\u54ea\u4e9b\u9009\u9879\u65b9\u9762\u7684\u8be6\u7ec6\u4fe1\u606f\u8bf7\u53c2\u9605\u53c2\u8003\u624b\u518c\u9875\u3002\n<\/p>\n<p>\n\t\u5b89\u88c5vnstat\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu\u6216debian  \r\n$ sudo apt-get install vnstat  \r\n# fedora\u6216 centos\uff08\u6765\u81eaepel\uff09  \r\n$ sudo yum install vnstat  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t9. bwm-ng\n<\/p>\n<p>\n\tbwm-ng\uff08\u4e0b\u4e00\u4ee3\u5e26\u5bbd\u76d1\u63a7\u5668\uff09\u662f\u53e6\u4e00\u6b3e\u975e\u5e38\u7b80\u5355\u7684\u5b9e\u65f6\u7f51\u7edc\u8d1f\u8f7d\u76d1\u63a7\u5de5\u5177\uff0c\u53ef\u4ee5\u62a5\u544a\u6458\u8981\u4fe1\u606f\uff0c\u663e\u793a\u8fdb\u51fa\u7cfb\u7edf\u4e0a\u6240\u6709\u53ef\u7528\u7f51\u7edc\u63a5\u53e3\u7684\u4e0d\u540c\u6570\u636e\u7684\u4f20\u8f93\u901f\u5ea6\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ bwm-ng  \r\nbwm-ng v0.6 (probing every 0.500s), press 'h' for help  \r\ninput: \/proc\/net\/dev type: rate  \r\n\/         iface                   Rx                   Tx                T  \r\not=================================================================  \r\n==           eth0:           0.53 KB\/s            1.31 KB\/s            1.84  \r\nKB             lo:           0.00 KB\/s            0.00 KB\/s            0.00  \r\nKB-------------------------------------------------------------------------------------------------------------  \r\ntotal:           0.53 KB\/s            1.31 KB\/s            1.84  \r\nKB\/s  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u5982\u679c\u63a7\u5236\u53f0\u8db3\u591f\u5927\uff0cbwm-ng\u8fd8\u80fd\u4f7f\u7528curses2\u8f93\u51fa\u6a21\u5f0f\uff0c\u4e3a\u6d41\u91cf\u7ed8\u5236\u6761\u5f62\u56fe\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ bwm-ng -o curses2  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u5b89\u88c5bwm-ng\uff1a\u5728CentOS\u4e0a\uff0c\u53ef\u4ee5\u4eceEpel\u6765\u5b89\u88c5bwm-ng\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu\u6216debian  \r\n$ sudo apt-get install bwm-ng  \r\n# fedora\u6216centos\uff08\u6765\u81eaepel\uff09  \r\n$ sudo apt-get install bwm-ng  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t10. cbm\uff1aColor Bandwidth Meter\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s2.51cto.com\/wyfs02\/M02\/23\/ED\/wKioL1NHVhWSx_qNAACKglAqjWM437.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s2.51cto.com\/wyfs02\/M02\/23\/ED\/wKioL1NHVhWSx_qNAACKglAqjWM437.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u8fd9\u662f\u4e00\u6b3e\u5c0f\u5de7\u7b80\u5355\u7684\u5e26\u5bbd\u76d1\u63a7\u5de5\u5177\uff0c\u53ef\u4ee5\u663e\u793a\u901a\u8fc7\u8bf8\u7f51\u7edc\u63a5\u53e3\u7684\u6d41\u91cf\u5927\u5c0f\u3002\u6ca1\u6709\u8fdb\u4e00\u6b65\u7684\u9009\u9879\uff0c\u4ec5\u4ec5\u5b9e\u65f6\u663e\u793a\u548c\u66f4\u65b0\u6d41\u91cf\u7684\u7edf\u8ba1\u4fe1\u606f\u3002<span style=\"line-height:1.5;\">&nbsp;<\/span><span style=\"line-height:1.5;\"><\/span>\n<\/p>\n<p style=\"color:#333333;text-indent:28px;font-family:\u5b8b\u4f53;font-size:14px;background-color:#F8F8F8;\">\n\t<strong> <\/strong>\n<\/p>\n<pre class=\"prettyprint lang-js\"><strong>$ sudo apt-get install cbm<\/strong><\/pre>\n<p><strong> 11. speedometer<\/strong> <\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u8fd9\u662f\u53e6\u4e00\u6b3e\u5c0f\u5de7\u800c\u7b80\u5355\u7684\u5de5\u5177\uff0c\u4ec5\u4ec5\u7ed8\u5236\u5916\u89c2\u6f02\u4eae\u7684\u56fe\u5f62\uff0c\u663e\u793a\u901a\u8fc7\u67d0\u4e2a\u63a5\u53e3\u4f20\u8f93\u7684\u5165\u7ad9\u6d41\u91cf\u548c\u51fa\u7ad9\u6d41\u91cf\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ speedometer -r eth0 -t eth0  <\/pre>\n<p>\n\t\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s1.51cto.com\/wyfs02\/M01\/23\/ED\/wKiom1NHVlqREiKDAACob-3PQms100.png\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s1.51cto.com\/wyfs02\/M01\/23\/ED\/wKiom1NHVlqREiKDAACob-3PQms100.png\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5speedometer\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu\u6216debian\u7528\u6237  \r\n$ sudo apt-get install speedometer  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t12. pktstat\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s4.51cto.com\/wyfs02\/M01\/23\/ED\/wKioL1NHVlnh_O30AAE_o8zmrUs132.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s4.51cto.com\/wyfs02\/M01\/23\/ED\/wKioL1NHVlnh_O30AAE_o8zmrUs132.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\tpktstat\u53ef\u4ee5\u5b9e\u65f6\u663e\u793a\u6240\u6709\u6d3b\u52a8\u8fde\u63a5\uff0c\u5e76\u663e\u793a\u54ea\u4e9b\u6570\u636e\u901a\u8fc7\u8fd9\u4e9b\u6d3b\u52a8\u8fde\u63a5\u4f20\u8f93\u7684\u901f\u5ea6\u3002\u5b83\u8fd8\u53ef\u4ee5\u663e\u793a\u8fde\u63a5\u7c7b\u578b\uff0c\u6bd4\u5982TCP\u8fde\u63a5\u6216UDP\u8fde\u63a5\uff1b\u5982\u679c\u6d89\u53caHTTP\u8fde\u63a5\uff0c\u8fd8\u4f1a\u663e\u793a\u5173\u4e8eHTTP\u8bf7\u6c42\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ sudo pktstat -i eth0 -nt  \r\n$ sudo apt-get install pktstat  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t13. netwatch\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s2.51cto.com\/wyfs02\/M01\/23\/ED\/wKiom1NHVqSicEj3AACpP4eyJto989.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s2.51cto.com\/wyfs02\/M01\/23\/ED\/wKiom1NHVqSicEj3AACpP4eyJto989.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\tnetwatch\u662fnetdiag\u5de5\u5177\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u4e5f\u53ef\u4ee5\u663e\u793a\u672c\u5730\u4e3b\u673a\u4e0e\u5176\u4ed6\u8fdc\u7a0b\u4e3b\u673a\u4e4b\u95f4\u7684\u8fde\u63a5\uff0c\u5e76\u663e\u793a\u54ea\u4e9b\u6570\u636e\u5728\u6bcf\u4e2a\u8fde\u63a5\u4e0a\u6240\u4f20\u8f93\u7684\u901f\u5ea6\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ sudo netwatch -e eth0 -nt  \r\n$ sudo apt-get install netdiag  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t14. trafshow\n<\/p>\n<p>\n\t\u4e0enetwatch\u548cpktstat\u4e00\u6837\uff0ctrafshow\u4e5f\u53ef\u4ee5\u62a5\u544a\u5f53\u524d\u6d3b\u52a8\u8fde\u63a5\u3001\u5b83\u4eec\u4f7f\u7528\u7684\u534f\u8bae\u4ee5\u53ca\u6bcf\u6761\u8fde\u63a5\u4e0a\u7684\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u3002\u5b83\u80fd\u4f7f\u7528pcap\u7c7b\u578b\u8fc7\u6ee4\u5668\uff0c\u5bf9\u8fde\u63a5\u8fdb\u884c\u8fc7\u6ee4\u3002\n<\/p>\n<p>\n\t\u53ea\u76d1\u63a7TCP\u8fde\u63a5\n<\/p>\n<p style=\"text-align:center;\">\n\t<a href=\"http:\/\/s2.51cto.com\/wyfs02\/M02\/23\/ED\/wKioL1NHVsnR03qJAAE5I5OyRbU350.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"fit-image\" src=\"http:\/\/s2.51cto.com\/wyfs02\/M02\/23\/ED\/wKioL1NHVsnR03qJAAE5I5OyRbU350.jpg\" width=\"400\" alt=\"\" \/><\/a>\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">$ sudo trafshow -i eth0 tcp  \r\n$ sudo apt-get install netdiag  <\/pre>\n<p>\n15. netload<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tnetload\u547d\u4ee4\u53ea\u663e\u793a\u5173\u4e8e\u5f53\u524d\u6d41\u91cf\u8d1f\u8f7d\u7684\u4e00\u4efd\u7b80\u77ed\u62a5\u544a\uff0c\u5e76\u663e\u793a\u81ea\u7a0b\u5e8f\u542f\u52a8\u4ee5\u6765\u6240\u4f20\u8f93\u7684\u603b\u5b57\u8282\u91cf\u3002\u6ca1\u6709\u66f4\u591a\u7684\u529f\u80fd\u7279\u6027\u3002\u5b83\u662fnetdiag\u7684\u4e00\u90e8\u5206\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ netload eth0  \r\n$ sudo apt-get install netdiag <\/pre>\n<p><span style=\"line-height:1.5;color:inherit;\"><\/span> <\/p>\n<p>\n\t\n<\/p>\n<p>\n\t16. ifstat\n<\/p>\n<p>\n\tifstat\u80fd\u591f\u4ee5\u6279\u5904\u7406\u5f0f\u6a21\u5f0f\u663e\u793a\u7f51\u7edc\u5e26\u5bbd\u3002\u8f93\u51fa\u91c7\u7528\u7684\u4e00\u79cd\u683c\u5f0f\u4fbf\u4e8e\u7528\u6237\u4f7f\u7528\u5176\u4ed6\u7a0b\u5e8f\u6216\u5b9e\u7528\u5de5\u5177\u6765\u8bb0\u5165\u65e5\u5fd7\u548c\u5206\u6790\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ ifstat -t -i eth0 0.5  \r\nTime           eth0  \r\nHH:MM:SS   KB\/s in  KB\/s out  \r\n09:59:21   \u3000   2.62      2.80  \r\n09:59:22   \u3000   2.10      1.78  \r\n09:59:22   \u3000   2.67      1.84  \r\n09:59:23    \u3000  2.06      1.98  \r\n09:59:23    \u3000  1.73      1.79  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u5b89\u88c5ifstat\uff1aUbuntu\u3001Debian\u548cFedora\u7528\u6237\u5728\u9ed8\u8ba4\u8f6f\u4ef6\u5e93\u91cc\u9762\u5c31\u6709\u5b83\u3002CentOS\u7528\u6237\u5219\u9700\u8981\u4eceRepoforge\u83b7\u5f97\u5b83\uff0c\u56e0\u4e3aEpel\u91cc\u9762\u6ca1\u6709\u5b83\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\"># ubuntu, debian  \r\n$ sudo apt-get install ifstat  \r\n# fedora, centos\uff08Repoforge\uff09  \r\n$ sudo yum install ifstat  \r\n<\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t17. dstat\n<\/p>\n<p>\n\tdstat\u662f\u4e00\u6b3e\u7528\u9014\u5e7f\u6cdb\u7684\u5de5\u5177\uff08\u7528python\u8bed\u8a00\u7f16\u5199\uff09\uff0c\u5b83\u53ef\u4ee5\u76d1\u63a7\u7cfb\u7edf\u7684\u4e0d\u540c\u7edf\u8ba1\u4fe1\u606f\uff0c\u5e76\u4f7f\u7528\u6279\u5904\u7406\u6a21\u5f0f\u6765\u62a5\u544a\uff0c\u6216\u8005\u5c06\u76f8\u5173\u6570\u636e\u8bb0\u5165\u5230CSV\u6216\u7c7b\u4f3c\u7684\u6587\u4ef6\u3002\u8fd9\u4e2a\u4f8b\u5b50\u663e\u793a\u4e86\u5982\u4f55\u4f7f\u7528dstat\u6765\u62a5\u544a\u7f51\u7edc\u5e26\u5bbd\u3002\n<\/p>\n<p>\n\t\u5b89\u88c5dstat\n<\/p>\n<pre class=\"prettyprint lang-js\">$ dstat -nt  \r\n-net\/total- ----system----  \r\nrecv  send|     time  \r\n0     0 |23-03 10:27:13  \r\n1738B 1810B|23-03 10:27:14  \r\n2937B 2610B|23-03 10:27:15  \r\n2319B 2232B|23-03 10:27:16  \r\n2738B 2508B|23-03 10:27:17  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t18. collectl\n<\/p>\n<p>\n\tcollectl\u4ee5\u4e00\u79cd\u7c7b\u4f3cdstat\u7684\u683c\u5f0f\u62a5\u544a\u7cfb\u7edf\u7684\u7edf\u8ba1\u4fe1\u606f\uff1b\u4e0edstat\u4e00\u6837\uff0c\u5b83\u4e5f\u6536\u96c6\u5173\u4e8e\u7cfb\u7edf\u4e0d\u540c\u8d44\u6e90\uff08\u5982\u5904\u7406\u5668\u3001\u5185\u5b58\u548c\u7f51\u7edc\u7b49\uff09\u7684\u7edf\u8ba1\u4fe1\u606f\u3002\u8fd9\u91cc\u7ed9\u51fa\u7684\u4e00\u4e2a\u7b80\u5355\u4f8b\u5b50\u663e\u793a\u4e86\u5982\u4f55\u4f7f\u7528collectl\u6765\u62a5\u544a\u7f51\u7edc\u4f7f\u7528\/\u5e26\u5bbd\u3002\n<\/p>\n<pre class=\"prettyprint lang-js\">$ collectl -sn -oT -i0.5  \r\nwaiting for 0.5 second sample...  \r\n#         &lt;----------Network----------&gt;  \r\n#Time       KBIn  PktIn  KBOut  PktOut  \r\n10:32:01      40     58     43      66  \r\n10:32:01      27     58      3      32  \r\n10:32:02       3     28      9      44  \r\n10:32:02       5     42     96      96  \r\n10:32:03       5     48      3      28  <\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t\u5b89\u88c5collectl\n<\/p>\n<pre class=\"prettyprint lang-js\"># Ubuntu\/Debian\u7528\u6237  \r\n$ sudo apt-get install collectl  \r\n#Fedora  \r\n$ sudo yum install collectl <\/pre>\n<p><span style=\"line-height:1.5;color:inherit;\"><\/span> <\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u7ed3\u675f\u8bed\n<\/p>\n<p>\n\t\u4e0a\u8ff0\u51e0\u4e2a\u4f7f\u7528\u65b9\u4fbf\u7684\u547d\u4ee4\u53ef\u4ee5\u8fc5\u901f\u68c0\u67e5Linux\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7edc\u5e26\u5bbd\u4f7f\u7528\u60c5\u51b5\u3002\u4e0d\u8fc7\uff0c\u8fd9\u4e9b\u547d\u4ee4\u9700\u8981\u7528\u6237\u901a\u8fc7SSH\u767b\u5f55\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u3002\u53e6\u5916\uff0c\u57fa\u4e8eWeb\u7684\u76d1\u63a7\u5de5\u5177\u4e5f\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u540c\u6837\u7684\u4efb\u52a1\u3002\n<\/p>\n<p>\n\tntop\u548cdarkstat\u662f\u9762\u5411Linux\u7cfb\u7edf\u7684\u5176\u4e2d\u4e24\u4e2a\u57fa\u672c\u7684\u57fa\u4e8eWeb\u7684\u7f51\u7edc\u76d1\u63a7\u5de5\u5177\u3002\u9664\u6b64\u4e4b\u5916\u8fd8\u6709\u4f01\u4e1a\u7ea7\u76d1\u63a7\u5de5\u5177\uff0c\u6bd4\u5982nagios\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u4e00\u6279\u529f\u80fd\u7279\u6027\uff0c\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u76d1\u63a7\u670d\u52a1\u5668\uff0c\u8fd8\u80fd\u76d1\u63a7\u6574\u4e2a\u57fa\u7840\u8bbe\u65bd\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\n<\/p>\n<h2 style=\"text-align:center;\">\n\tCentos\u4f7f\u7528\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u6e90RepoForge<br \/>\n<\/h2>\n<p>\n\tRepoForge\u6e90\u53ef\u4ee5\u505a\u4e3aCentos\u5b98\u65b9\u6e90\u53caEPEL\u6e90\u7684\u8865\u5145\uff0c\u8fd9\u6837Centos\u4e0b\u5e38\u7528\u8f6f\u4ef6\u57fa\u672c\u90fd\u53ef\u4f7f\u7528yum\u5b89\u88c5\u4e86\u3002<br \/>\nCentos5\uff1a\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">rpm -ivh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el5.rf.i386.rpm\r\nrpm -ivh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm<\/pre>\n<p>\n\t\n<\/p>\n<p>Centos6\uff1a<\/p>\n<pre class=\"prettyprint lang-js\">rpm -ivh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el6.rf.i686.rpm\r\nrpm -ivh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm<\/pre>\n<p>\n\t\n<\/p>\n<p>\n\tCentos7:<\/p>\n<pre><a href=\"http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm\">\r\n<pre class=\"prettyprint lang-js\">rpm -ivh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm<\/pre>\n<p><\/a>\n<\/p>\n<p><\/p>\n<p>\n\t\u56fd\u5185\u4f7f\u7528sohu\u63d0\u4f9b\u7684\u955c\u50cf\uff1a\n<\/p>\n<pre class=\"prettyprint lang-js\">cat &gt; \/etc\/yum.repos.d\/mirrors-rpmforge &lt;&lt;EOF\r\nhttp:\/\/mirrors.sohu.com\/dag\/redhat\/el6\/en\/$ARCH\/rpmforge\r\nEOF\r\ncat &gt; \/etc\/yum.repos.d\/mirrors-rpmforge-extras &lt;&lt;EOF\r\nhttp:\/\/mirrors.sohu.com\/dag\/redhat\/el6\/en\/$ARCH\/extras\r\nEOF\r\ncat &gt; \/etc\/yum.repos.d\/mirrors-rpmforge-testing &lt;&lt;EOF\r\nhttp:\/\/mirrors.sohu.com\/dag\/redhat\/el6\/en\/$ARCH\/testing\r\nEOF<\/pre>\n<p>\n\t\n<\/p>\n<p>\n\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e9b\u53ef\u4ee5\u7528\u6765\u76d1\u63a7\u7f51\u7edc\u4f7f\u7528\u60c5\u51b5\u7684Linux\u547d\u4ee4\u884c\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u76d1\u63a7\u901a\u8fc7\u7f51\u7edc\u63a5\u53e3\u4f20\u8f93\u7684\u6570\u636e\uff0c\u5e76\u6d4b\u91cf\u76ee\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.shuran.cn\/?p=686\">Read More &raquo;<\/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":[10],"tags":[],"class_list":["post-686","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=686"}],"version-history":[{"count":5,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/686\/revisions"}],"predecessor-version":[{"id":692,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/686\/revisions\/692"}],"wp:attachment":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}