①nethogs(查程序)
#Debian/Ubuntu:
apt-get install build-essential libncurses5-dev libpcap-dev
#Yum-based distro's:
yum install gcc-c++ libpcap-devel.x86_64 libpcap.x86_64 "ncurses*"
git clone https://github.com/raboof/nethogs
make
./src/nethogs #试运行
sudo make install
hash -r
sudo nethogs
②iftop(查ip)
#CentOS
安装好EPEL,直接yum install iftop
#Debian/Ubuntu:
apt-get install iftop