lmgsanm

每天学习一点,每天进步一点点…… Tomorrow is another beatifull day

导航

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

posted on 2017-03-01 18:18  lmgsanm  阅读(165)  评论(0编辑  收藏  举报