Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8052215
  • 博文数量: 594
  • 博客积分: 13065
  • 博客等级: 上将
  • 技术积分: 10324
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-26 16:44
个人简介

推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html

文章分类

全部博文(594)

分类: LINUX

2009-03-18 21:51:56

显示网卡的流量  display bandwidth usage on an interface
 
 
 
我用的是RHEL5U1 ,需要安装 byacc 和flex这2个包
 
rpm -ivh byacc-1.9-29.2.2.i386.rpm
 
rpm -ivh flex-2.5.4a-41.fc6.i386.rpm
 
 
 
另外还需要libpcap
 
 
tar zxvf libpcap-0.9.8.tar.gz
 
cd libpcap-0.9.8
 
./configure
 
make
 
make install
 
 
 
安装iftop
 
wget
 
tar zxvf iftop-0.17.tar.gz
 
cd iftop-0.17
 
./configure
 
make
 
make install
 
 
 
安装完成后直接用 iftop –I eth0 –n 就可以看到eth0网卡的流量状况
 
文章出处:
阅读(1965) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~