centos安装iftop 监控各进程的流量

1.安装libpcap,libcurses

yum install -y gcc flex byacc libpcap ncurses ncurses-devel libpcap-devel tcpdump

 

2.下载安装包

tar -xvf iftop-0.17.tar.gz

./configure --prefix=/usr/local/iftop

make

make install

 

3.启动

cd /usr/local/iftop/sbin

./iftop

./iftop -i eth0 -P

你可能感兴趣的:(linux)