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
[root@localhost ~]# yum install epel-release -y
[root@localhost ~]# yum install nethogs -y
[root@localhost ~]# nethogs -V version 0.8.5
root@localhost ~]# nethogs
nethogs 後面直接加網卡名稱可以監控該網卡
root@localhost ~]# nethogs ens33
ethogs 加-d參數指定多長時間刷新一次
root@localhost ~]# nethogs -d 3
Nethogs就是這樣使用。