Linux # nethogs

 nethogs是一款小巧的"net top"工具,可以显示每个进程所使用的带宽,并对列表排序,将耗用带宽最多的进程排在最上面。万一出现带宽使用突然激增的情况,用户迅速打开nethogs,就可以找到导致带宽使用激增的进程。nethogs可以报告程序的进程编号(PID)、用户和路径。

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*

root@localhost:/opt#wget -c  https://github.com/raboof/nethogs/archive/v0.8.5.tar.gz

root@localhost:/opt# tar -zxvf v0.8.5.tar.gz

root@localhost:/opt# cd nethogs-0.8.5/

root@localhost:/opt/nethogs-0.8.5# make && make install

#

 附上GitHub地址:https://github.com/raboof/nethogs

posted @ 2017-09-21 18:08  陈奕迅-可以了  阅读(177)  评论(0编辑  收藏  举报