#-------------------网络流量监控工具iftop---------------#
#! /bin/sh
#1.首先安装依赖关系包
yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel -y
#2.下载iftop工具
wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
#3.解压安装iftop
tar zxvf iftop-0.17.tar.gz && cd iftop-0.17
./configure --prefix=/usr/local/iftopd && make && make install
#4.运行iftop
cd /usr/local/iftopd/sbin/
./iftop
一无所知的世界走下去才会有惊喜
It will be a surprise right know nothing about the world