$ brew install mtr
$ mtr
-bash: mtr: command not found
解决方法
$ vi ~/.zshrc
…
alias mtr=/usr/local/sbin/mtr
继续运行
$ mtr
mtr: unable to get raw sockets.
$ cd /usr/local/sbin/
$ sudo chown root mtr
$ sudo chmod u+s mtr
再次使用
My traceroute [v0.87]
localhost (0.0.0.0) Thu Sep 29 10:52:15 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 0.0% 18 1.3 7.6 1.3 45.6 13.5
2. localhost 0.0% 18 7.0 6.9 1.5 33.8 8.1
3. localhost 0.0% 18 2.9 6.1 1.9 43.2 10.0
4. 123.125.26.227 0.0% 18 4.5 4.9 1.6 20.6 5.4
5. 123.125.26.249 0.0% 18 118.7 44.4 19.1 118.7 25.0
6. localhost 0.0% 18 7.2 8.0 5.4 14.3 2.5
7. localhost 0.0% 18 16.5 9.8 2.3 34.3 8.9
8. localhost 0.0% 18 20.3 8.2 2.5 20.3 5.2
9. 61.49.39.109 0.0% 18 3.4 10.8 3.4 50.7 11.2
10. 123.126.7.21 0.0% 18 10.3 10.7 5.8 42.3 8.2
11. 61.51.114.193 0.0% 18 4.9 8.7 3.2 24.0 5.1
12. 61.148.152.125 0.0% 18 4.4 10.2 4.4 21.7 4.2
13. 202.96.12.81 0.0% 18 6.9 8.3 4.8 25.8 4.7
14. 219.158.101.46 0.0% 18 25.6 12.4 6.9 36.2 7.6
15. 219.158.101.62 0.0% 18 10.3 9.3 5.8 13.6 2.2
16. 219.158.38.54 0.0% 17 54.2 53.9 48.3 67.3 5.8
17. 27.85.136.81 0.0% 17 56.0 56.2 49.9 84.5 8.2
18. 27.85.134.122 0.0% 17 56.2 59.9 49.2 169.0 28.2
19. cm-fcu204.kddnet.ad.jp 0.0% 17 58.1 64.0 50.3 119.5 18.3
20. 124.215.199.170 0.0% 17 55.1 59.7 50.0 101.1 12.9
21. li600-117.members.linode.com 0.0% 17 54.3 59.2 49.7 100.8 15.5