mac apt-get--> Homebrew

在最近採集linux進程網絡指標的時候,爲了對比採集結果,須要linux系統查看進程網絡流量命令,最後查到nethogs 這個工具好用,可是在下載安裝過程當中碰到問題:html

1:http://blog.csdn.net/camlot_/article/details/47424671linux

問題:git

sudo apt-get install nethogs時Mac: github

-bash:apt-get:command not found ruby

上述連接博文給出解決方案,使用一:用brew代替apt-getbash

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)「網絡

以後使用 brew install XXXX 就okcurl

 

2:nethogs 不能執行,在terminal輸入nethogs沒有反應,最後進入nethogs安裝目錄下 工具

/usr/local/Cellar/nethogs/0.8.5/sbinurl

執行./nethogs

ok 看到

but??pid>??什麼鬼

TODO

 

 

 

PART II

http://blog.csdn.net/monkeynote/article/details/45867803

https://www.cnblogs.com/jackchen001/p/7398921.html

https://www.cnblogs.com/hark0623/p/6097164.html

http://blog.csdn.net/testcs_dn/article/details/40506225

使用nethogs查看進程網絡數據

 

mac  bug

https://github.com/raboof/nethogs/issues/31

相關文章
相關標籤/搜索