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

相关文章
相关标签/搜索