环境:centos5.5 + ubuntu 10.10
最近我的VPS的流量超级大,平均达到了 5m/s , 不知道怎么回事 ,怎么流量这么大 ,最后找到了一个不错的工具 iftop 监控流量
和 top 命令相似,很实用,很方便
1,安装
ubuntu:
>sudo apt-get install iftop
centos:
yum install flex byacc libpcap ncurses ncurses-devel wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/iftop-0.17-1.el5.rf.i386.rpm rpm -ivh iftop-0.17-1.el5.rf.i386.rpm
2,使用
>iftop
3,查看帮助
iftop 后 ? 查看
4,截图
更详细的摸下面网址:
http://www.vpser.net/manage/iftop.html