码迷,mamicode.com
首页 > 系统相关 > 详细

mac apt-get--> Homebrew

时间:2018-01-28 00:09:34      阅读:291      评论:0      收藏:0      [点我收藏+]

标签:https   hub   number   back   fss   and   查看   分享   tail   

在最近采集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

技术分享图片

 

mac apt-get--> Homebrew

标签:https   hub   number   back   fss   and   查看   分享   tail   

原文地址:https://www.cnblogs.com/newcoder/p/8367612.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!