夜间模式暗黑模式
字体
阴影
滤镜
圆角
主题色
Debian Raspbian 网络流量实时监控

上一次编辑:

先装必要软件:

apt-get install gcc make g++

下载流量监控的包。

wget https://www.linkingvision.com/download/tools/nload-0.7.4.tar.gz
tar -xzvf nload-0.7.4.tar.gz
cd nload-0.7.4/
./configure 
make

如果./configure出现

 configure: error: ncurses library or development files not found. ncurses is required for nload.
的话,

Debian/Ubuntu安装:

apt-get install libncurses5-dev

CentOS安装:

 yum install ncurses-devel

~反.爬/ #原(文! m͓̽s͓̽o͓̽a͓̽y͓̽u͓̽5͓̽6͓̽.͓̽c͓̽o͓̽m͓̽

输入

./src/nload

就可以看流量了,按回车键或者左右键可以设置显示的网卡。

输入

 ./src/nload -h
可查看帮助:

 Command line syntax:
nload [options] [devices]
nload --help|-h

Options:
-a period       Sets the length in seconds of the time window for average
                calculation.
                Default is 300.
-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.
-m              Show multiple devices at a time; no traffic graphs.
-o max_scaling  Same as -i but for the graph indicating the outgoing bandwidth
                usage.
                Default is 10240.
-t interval     Determines the refresh interval of the display in milliseconds.
                Default is 500.
-u h|b|k|m|g    Sets the type of unit used for the display of traffic numbers.
   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.
-U h|b|k|m|g    Same as -u, but for a total amount of data (without "/s").
   H|B|K|M|G    Default is H.
devices         Network devices to use.
                Default is to use all auto-detected devices.
--help
-h              Print this help.

example: nload -t 200 -i 1024 -o 128 -U M

The options above can also be changed at run time by pressing the 'F2' key. 

暂无评论

发送评论 编辑评论


				
上一篇
下一篇