㈠ 下载
㈡ 作用
㈢ 使用
该程序需要 root 权限,默认是监控 eth0 网卡 ,如果有多网卡的话就必须进行指定
nethogs
nethogs eth1
nethogs [option] eth0 eth1
nethogs [option] eth0 eth1 ppp0
sudo /usr/sbin/nethogs eth0
交互式控制指令:
m : Cycle between display modes (kb/s, kb, b, mb)
r : Sort by received.
s : Sort by sent.
q : Quit and return to the shell prompt.
常用的 option :
-d delay for refresh rate.
-h display available commands usage.
-p sniff in promiscious mode (not recommended).
-t tracemode.
安装之前、可能需要先 yum install ncurses*
㈡ 作用
有别于其他统计和监控网卡流量、NetHogs 有点特别、可以监控每个进程的网络带宽占用情况
㈢ 使用
该程序需要 root 权限,默认是监控 eth0 网卡 ,如果有多网卡的话就必须进行指定
nethogs
nethogs eth1
nethogs [option] eth0 eth1
nethogs [option] eth0 eth1 ppp0
sudo /usr/sbin/nethogs eth0
交互式控制指令:
m : Cycle between display modes (kb/s, kb, b, mb)
r : Sort by received.
s : Sort by sent.
q : Quit and return to the shell prompt.
常用的 option :
-d delay for refresh rate.
-h display available commands usage.
-p sniff in promiscious mode (not recommended).
-t tracemode.
-V prints Version info.

NetHogs是一款轻量级的网络监控工具,能够实时显示每个进程的网络带宽使用情况。区别于一般的网络流量监控软件,它专注于展示每个进程对网络资源的占用。默认监控eth0网卡,可通过命令行参数指定其他网卡。运行时需要root权限。
1557

被折叠的 条评论
为什么被折叠?



