yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel
tar zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make && make install

接着可以直接输入iftop 可检测当前ip流量数据

流量数据iftop命令-LMLPHP

05-11 11:26