关于linux:部署Nethogs监控软件

8次阅读

共计 485 个字符,预计需要花费 2 分钟才能阅读完成。

NetHogs 是一个开源的命令行工具(相似于 Linux 的 top 命令),用来按过程或程序实时统计网络带宽使用率。


环境: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

监控 ens33 带宽

nethogs 前面间接加网卡名称能够监控该网卡

root@localhost ~]# nethogs ens33

3 秒刷新一次数据

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

root@localhost ~]# nethogs -d 3


Nethogs 就是这样应用。

正文完
 0