mac apt-get--> Homebrew

在最近采集linux进程网络指标的时候,为了对比采集结果,需要linux系统查看进程网络流量命令,最后查到nethogs 这个工具好用,但是在下载安装过程中碰到问题:

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

问题:

sudo apt-get install nethogs时Mac: 

-bash:apt-get:command not found 

上述链接博文给出解决方案,使用一:用brew代替apt-get

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

之后使用 brew install XXXX 就ok

 

2:nethogs 不能执行,在terminal输入nethogs没有反应,最后进入nethogs安装目录下 

/usr/local/Cellar/nethogs/0.8.5/sbin

执行./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

 

posted @ 2018-01-27 23:17  sunshinelym  阅读(541)  评论(0编辑  收藏  举报