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