CentOS安装iftop查看网络流量

http://prodigyu.com/301

安装所需组件
yum list | grep libp
yum install libp*
wget ftp://ftp.lmd.ens.fr/pub/devil/devel/sources/1.2/libpcap-0.9.8.tar.gz

安装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

安装完后使用命令
iftop -i eth0 -n 查看eth0的流量
退出按q

卸载:make clean iftop-0.17

 

TX:发送流量
RX:接收流量
TOTAL:总流量
Cumm:运行iftop到目前时间的总 流量
peak:流量峰值
rates: 分别表示过去 2s 10s 40s 的平均流量

#iftop -i eth0 -n 

就可以看到eth0网卡的流量状况。
posted @ 2012-03-06 16:08  haiwei.sun  阅读(898)  评论(0编辑  收藏  举报
返回顶部