“Linux下按进程实时统计网络带宽利用率 nethogs的安装”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
 
第6行: 第6行:
 
  wget -O /etc/yum.repos.d/epel.repo  
 
  wget -O /etc/yum.repos.d/epel.repo  
 
  yum  -y install nethogs
 
  yum  -y install nethogs
 +
  sudo apt install  nethogs
 +
 +
 +
Usage
 +
nethogs eth0 eth1
 +
 +
  
 
   
 
   
第15行: 第22行:
  
 
[https://linuxhint.com/monitor_network_traffic_nethogs/ How to Monitor Network Traffic using nethogs]
 
[https://linuxhint.com/monitor_network_traffic_nethogs/ How to Monitor Network Traffic using nethogs]
 +
 +
https://www.tecmint.com/nethogs-monitor-per-process-network-bandwidth-usage-in-real-time
 
[[category:ops]]
 
[[category:ops]]

2020年9月16日 (三) 08:33的最新版本

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

来自NetHogs项目网站: NetHogs是一个小型的’net top’工具,不像大多数工具那样拖慢每个协议或者是每个子网的速度而是按照进程进行带宽分组.NetHogs NetHogs不需要依赖载入某个特殊的内核模块. 如果发生了网络阻塞你可以启动NetHogs立即看到哪个PID造成的这种状况.这样就很容易找出哪个程序跑飞了然后突然占用你的带宽.

wget -O /etc/yum.repos.d/epel.repo 
yum  -y install nethogs
 sudo apt install  nethogs


Usage

nethogs eth0 eth1



参考

http://mirrors.aliyun.com/help/epel

Linux下按进程实时统计网络带宽利用率

How to Monitor Network Traffic using nethogs

https://www.tecmint.com/nethogs-monitor-per-process-network-bandwidth-usage-in-real-time