2、首先安装iftop所需的软件包
yum install -y flex byacc libpcap ncurses-devel libpcap-devel
3、创建目录,用来存放iftop的tar包,并且下载、配置、安装
[root@xietangsheng ~]# mkdir /iftop
[root@xietangsheng ~]# cd /iftop
[root@xietangsheng~]#wget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz
[root@xietangsheng /iftop]# ls
iftop-1.0pre4.tar.gz
[root@xietangsheng /iftop]# tar zxf iftop-1.0pre4.tar.gz
[root@xietangsheng /iftop]# cd iftop-1.0pre4/
[root@xietangsheng /iftop/iftop-1.0pre4]# ./configure
[root@xietangsheng /iftop/iftop-1.0pre4]# make&&make install
4、测试iftop是否安装成功
原文:https://blog.51cto.com/13751090/2375590