{"id":2163,"date":"2014-05-27T23:14:15","date_gmt":"2014-05-27T15:14:15","guid":{"rendered":"http:\/\/www.huzs.top\/?p=2163"},"modified":"2014-05-27T23:49:00","modified_gmt":"2014-05-27T15:49:00","slug":"centos-%e4%b8%8b%e5%ae%9e%e6%97%b6%e6%9f%a5%e7%9c%8b%e7%bd%91%e5%8d%a1%e6%b5%81%e9%87%8f%e7%9a%84%e5%b7%a5%e5%85%b7-nload","status":"publish","type":"post","link":"https:\/\/www.huzs.top\/?p=2163","title":{"rendered":"Centos \u4e0b\u5b9e\u65f6\u67e5\u770b\u7f51\u5361\u6d41\u91cf\u7684\u5de5\u5177 \u2013 nload"},"content":{"rendered":"<p>nload \u7684\u5b98\u65b9\u7f51\u7ad9\u4e3a\uff1a http:\/\/www.roland-riegel.de\/nload\/<\/p>\n<p>\u5728 CentOS \u4e0b\uff0cnload \u76ee\u524d\u5c31\u53ea\u80fd\u57fa\u4e8e\u6e90\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1\u5b89\u88c5\u4e86\u3002\u9ed8\u8ba4\u5b89\u88c5\u7684 CentOS \uff0c\u8981\u7f16\u8bd1\u5b89\u88c5 nload \u65f6\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u5b89\u88c5\u51e0\u4e2a\u9700\u8981\u7684\u8f6f\u4ef6\u5305\uff1agcc \u3001gcc-c++ \u548c ncurses-devel<\/p>\n<p><code>yum install gcc gcc-c++ ncurses-devel<br \/>wget http:\/\/www.roland-riegel.de\/nload\/nload-0.7.4.tar.gz<br \/>tar xvf nload-0.7.4.tar.gz<br \/>cd nload-0.7.4<br \/>.\/configure<br \/>make<br \/>make install<\/code><\/p>\n<p>\u5b8c\u6210\u540e\uff0cnload \u88ab\u5b89\u88c5\u5728\u4e86 \/usr\/local\/bin\/nload \u3002<\/p>\n<p>\u7528\u56fe\u5f62\u65b9\u5f0f\u67e5\u770b\u5b9e\u65f6\u6d41\u91cf:<br \/><code>nload -t 200 -i 1024 -o 128 -u H<\/code><\/p>\n<p>\u67e5\u770b\u7b2c\u4e00\u7f51\u5361\u7684\u6d41\u91cf\u60c5\u51b5\uff0c\u663e\u793a\u7684\u662f\u5b9e\u65f6\u7684\u6d41\u91cf\u56fe<br \/><code>nload eth0<\/code><\/p>\n<p>\u540c\u65f6\u67e5\u770b\u591a\u4e2a\u7f51\u5361\u7684\u6d41\u91cf\u60c5\u51b5\u3002<br \/><code>nload -m<\/code><\/p>\n<p>\u6548\u679c\u662f\u8fd9\u6837\u7684:<br \/><a href=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2014\/05\/20140527231834.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2014\/05\/20140527231834.png\" alt=\"nload\" width=\"614\" height=\"380\" class=\"aligncenter size-full wp-image-2165\" \/><\/a><\/p>\n<p>\u53c2\u6570\u8bf4\u660e:<br \/>Options:<br \/>-a period       Sets the length in seconds of the time window for average calculation. Default is 300.<br \/>-a period       \u8bbe\u7f6e\u5728\u65f6\u95f4\u7a97\u53e3\u5e73\u5747\u8ba1\u7b97\u79d2\u7684\u957f\u5ea6\u3002\u9ed8\u8ba4\u503c\u662f300\u3002<\/p>\n<p>-i max_scaling  Specifies the 100% mark in kBit\/s of the graph indicating the incoming bandwidth usage. Ignored if max_scaling is 0 or the switch -m is given. Default is 10240.<br \/>-i max_scaling  \u6307\u5b9a\u4e86100\uff05\u6807\u8bb0\u5728\u56fe\u4e2d\u7684kbit \/ s\u7684\u6307\u793a\u4f20\u5165\u7684\u5e26\u5bbd\u4f7f\u7528\u7387\u3002\u5982\u679cmax_scaling\u4e3a0\u6216\u5f00\u5173-m\u65f6\u7ed9\u4e88\u5ffd\u7565\u3002\u9ed8\u8ba4\u503c\u662f10240\u3002<\/p>\n<p>-m              Show multiple devices at a time; no traffic graphs.<br \/>-m              \u663e\u793a\u591a\u4e2a\u8bbe\u5907\u540c\u65f6\u4f7f\u7528;\u6ca1\u6709\u6d41\u91cf\u56fe\u3002<\/p>\n<p>-o max_scaling  Same as -i but for the graph indicating the outgoing bandwidth usage. Default is 10240.<br \/>-o max_scaling  \u76f8\u540c\u7684AS-I\uff0c\u4f46\u5bf9\u4e8e\u66f2\u7ebf\u56fe\uff0c\u663e\u793a\u51fa\u5e26\u5bbd\u4f7f\u7528\u3002\u9ed8\u8ba4\u503c\u662f10240\u3002<\/p>\n<p>-t interval     Determines the refresh interval of the display in milliseconds. Default is 500.<br \/>-t interval     \u786e\u5b9a\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d\u663e\u793a\u7684\u5237\u65b0\u95f4\u9694\u3002\u9ed8\u8ba4\u503c\u662f500\u3002<\/p>\n<p>-u h|b|k|m|g    Sets the type of unit used for the display of traffic numbers.<br \/>-u h|b|k|m|g    \u8bbe\u7f6e\u7528\u4e8e\u6d41\u91cf\u6570\u5b57\u7684\u663e\u793a\u5355\u5143\u7684\u7c7b\u578b\u3002<br \/>   H|B|K|M|G    h: auto, b: Bit\/s, k: kBit\/s, m: MBit\/s etc. H: auto, B: Byte\/s, K: kByte\/s, M: MByte\/s etc. Default is h.<br \/>-U h|b|k|m|g    Same as -u, but for a total amount of data (without &#8220;\/s&#8221;).<\/p>\n<p>-U h|b|k|m|g    \u540c-U\uff0c\u4f46\u662f\u5bf9\u4e8e\u6570\u636e\u7684\u603b\u91cf\uff08\u6ca1\u6709\u201c\/\u79d2\u201d\uff09\u3002<br \/>   H|B|K|M|G    Default is H.<\/p>\n<p>devices         Network devices to use. Default is to use all auto-detected devices.<br \/>devices         \u7f51\u7edc\u8bbe\u5907\u4f7f\u7528\u3002\u9ed8\u8ba4\u503c\u662f\u4f7f\u7528\u6240\u6709\u81ea\u52a8\u68c0\u6d4b\u5230\u7684\u8bbe\u5907\u3002<\/p>\n<p>\u4f8b\u5b50: nload -t 200 -i 1024 -o 128 -U M<\/p>\n<p>The options above can also be changed at run time by pressing the &#8216;F2&#8217; key.<br \/>\u4e0a\u9762\u7684\u9009\u9879\u4e5f\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u6309\u201cF2\u201d\u952e\u6539\u53d8\u3002<br \/>\u5b9e\u65f6\u67e5\u770b\u7f51\u5361\u6d41\u91cf\u7684\u5de5\u5177\u9664\u4e86 nload \u4e4b\u5916\uff0c\u8fd8\u6709 slurm \u4ee5\u53ca systat \u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nload \u7684\u5b98\u65b9\u7f51\u7ad9\u4e3a\uff1a http:\/\/www.roland-riegel.de\/nload\/ \u5728 Cent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-2163","post","type-post","status-publish","format-standard","hentry","category-linux","category-10"],"_links":{"self":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/2163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2163"}],"version-history":[{"count":5,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/2163\/revisions"}],"predecessor-version":[{"id":2169,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/2163\/revisions\/2169"}],"wp:attachment":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}