#安装编译nethogs的依赖包
yum -y install libpcap libpcap-devel
#下载nethogs最新版
wget 'http://downloads.sourceforge.net/project/nethogs/nethogs/0.8/nethogs-0.8.0.tar.gz'
tar -xzvf nethogs-0.8.0.tar.gz
cd nethogs
make && make install
#默认安装好后的路径是/usr/local/sbin/nethogs