iftop安装
yum -y install gcc gcc+
yum -y install ncurses-devel
tar xzf libpcap-1.4.0.tar.gz
yum -y install flex flex-devel
yum search all yacc
cd libpcap-1.4.0
./configure --prefix=/usr
make && make install
cd /usr/lib64/ && mkdir backup
mv libpcap.so.* backup/
cp /usr/lib/libpcap.so.1.4.0 .
ln -s /usr/lib64/libpcap.so.1.4.0 libpcap.so.0
ldconfig
cd /usr/local/src/iftop-0.17
./configure --prefix=/usr/local/iftop
make && make install
/usr/local/iftop/sbin/iftop -i eth1
每天更新一点点,温习一点点点,进步一点点