Linux/Centos nethogs 按进程监控网络带宽

nethogs属于epel里面软件包,如果本机没有安装epel需要先安装epel,命令如下

rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum -y install libpcap nethogs

nethogs eth0 -d 5 //这个命令意思是监控网卡eth0的带宽占用情况,每五秒刷新一次

如果要同时监视eth0和eth1接口,使用以下命令即可:

nethogs eth0 eth1

你可能感兴趣的:(Linux/Centos nethogs 按进程监控网络带宽)