背景

其实伴随着Failure to open IPv4 sockets: Operation not permitted错误的同时,还出现了mtr: Failure to start mtr-packet: Invalid argument如下图, 如何解决MTR工具在Mac上使用报Failure to open IPv4 sockets: Operation not permitted错误 我百度到了v2ex上一个出现类似错误的帖子,不过没去尝试里面的方法, 后来我看到permitted的时候忽然想到了permission。

解决

加了个sudomtr命令前面就解决了问题,而且万幸也没有出现上面v2ex帖子中的mtr: Failure to start mtr-packet: Invalid argument错误。