最新文章:
- Google Map api国内正常使用该如何配置(2021最新)
- wordpress国内网速慢加速及防DDOS攻击快速CF切换教程
- 2.18-3.31,共战疫情,阿里云免费送.网址域名
- Ubuntu安装时出现“failed to load ldlinux.c32”
- iconv函数报错 Detected an illegal character in input string
首页 运维技术
最好用的轻量级Linux网络流量实时监控工具nload
发布时间:2015年05月23日 评论数:抢沙发 阅读数:4797
个人觉得nload是个很好用的轻量级Linux网络流量实时监控工具,功能也很强.安装软件后,输入命令nload后,nload软件会很直观的显示流量的即时状态,上半部分ncoming是进入网卡的流量,下半部分Outgoing是从这块网卡出去的流量,每部分都有当前流量(Curr)、平均流量(Avg)、最小流量(Min)、最大流量(Max)、总流量(Ttl)。nload的工作界面如下所示:
官网及下载:http://www.roland-riegel.de/nload/index.html
http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
源码包方式安装:
wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
tar -zxvf nload-0.7.4.tar.gz
cd nload-0.7.4
./configure;make;make install
yum方式安装:
yum install -y nload
使用:
直接输入nload回车即可,也可以指定网卡,如nload eth1,还可以指定是以K、M和G来显示流量,如nload -u M显示的流量是以MB为单位的,nload -u G显示的流量是以GB为单位的。
查看还有哪些参数或选项:
[root@wdlinux ~]# nload -h
nload version 0.7.4
Copyright (C) 2001 – 2012 by Roland Riegel <feedback@roland-riegel.de>
nload comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. For more details see the
GNU General Public License Version 2 (http://www.gnu.org/copyleft/gpl.html).
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.
FAQ
如安装时提示下面的问题
configure: error: ncurses library or development files not found. ncurses is required for nload.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install’. Stop.
用 yum install -y ncurses-devel 即可解决
本文地址:http://www.90qj.com/60.html 本文已经被百度收录,点击查看详情
版权声明:若无注明,本文皆为“挨踢 Blog”原创,转载请保留文章出处。