Centos7下安装Nethogs

树叶云

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

安装epel源

[root@localhost ~]# yum install epel-release -y

安装Nethogs

[root@localhost ~]#  yum install nethogs -y

运行测试

查看版本

[root@localhost ~]# nethogs -V
version 0.8.5

直接执行nethogs界面如下

root@localhost ~]# nethogs

Centos7部署Nethogs监控软件Centos7部署Nethogs监控软件

监控ens33 带宽

nethogs 后面直接加网卡名称可以监控该网卡

root@localhost ~]# nethogs ens33

Centos7部署Nethogs监控软件Centos7部署Nethogs监控软件

3秒刷新一次数据

ethogs 加-d参数指定多长时间刷新一次

root@localhost ~]# nethogs -d 3

Nethogs就是这样使用。

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/222230.html<

(0)
运维的头像运维
上一篇2025-04-15 09:51
下一篇 2025-04-15 09:53

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注