linux 下网络流量监控

来源:互联网 发布:整理数据英语 编辑:程序博客网 时间:2024/05/01 23:34
 

 官方网站:
http://www.ex-parrot.com/~pdw/iftop/

安装iftop,,必须先安装libpcap
http://www.tcpdump.org/release/

wget http://www.tcpdump.org/release/libpcap-0.9.8.tar.gz
tar -zxvf libpcap-0.9.8.tar.gz
cd libpcap-0.9.8
./configure
make;make install

pcap安装完成,再来安装iftop
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make;make install

首行是网络流量刻度,
中间是与其它机器的流量,有个白底的bar直观的标识流量变化,后三列数据分别表示:
1. preceding 2 seconds 过去两秒钟的流量(traffic)
2. around half that amount over the preceding 10s 过去十秒钟流量的一半
3. a fifth of that over the whole of the last 40s 过去40秒钟流量的五分之一

底下3行
TX:发送流量
RX:接收流量
TOTAL:总流量
cumm:运行iftop以来的总流量
peak:峰值流量
rates:分别表示过去 2s 10s 40s时间内网卡总的平均流量

按h可以得到帮助,从帮助回到流量图也是按h
按流量排序

原创粉丝点击