NetHogs是一个开源的命令行工具(类似于Linux的top命令),用来按进程或程序实时统计网络带宽使用率,本篇文章重点为大家分享一下Centos7下安装Nethogs具体步骤。

CentOS Linux release 7.4.1708 (Core) ip:172.16.1.16
[root@localhost ~]# yum install libpcap libpcap-devel epel-release -y
[root@localhost ~]# yum install epel-release -y
[root@localhost ~]# yum install nethogs -y
[root@localhost ~]# nethogs -V
version 0.8.5
root@localhost ~]# nethogs
Centos7部署Nethogs监控软件Centos7部署Nethogs监控软件
nethogs 后面直接加网卡名称可以监控该网卡
root@localhost ~]# nethogs ens33
Centos7部署Nethogs监控软件Centos7部署Nethogs监控软件
ethogs 加-d参数指定多长时间刷新一次
root@localhost ~]# nethogs -d 3
Nethogs就是这样使用。