用NetHogs監控Linux每個進程的網絡使用情況

 ㈠ 下載
 
 nethogs-0.8.0.tar.gz 
 安裝之前、可能需要先 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.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章