I can believe fly.

Tuesday, April 17, 2018

Mac下使用brew安装mtr



1. 使用brew 安装
brew install mtr

2. shell加上alias映射
vim ~/.zshrc
alias mtr=/usr/local/sbin/mtr

关联问题:command not found

3. 设置权限
sudo chown root /usr/local/sbin/mtr
chmod u+s /usr/local/sbin/mtr

关联问题:mtr: unable to get raw sockets.

4. 例子
mtr --no-dns --report accounts.google.com

No comments: