通过brew安装
brew install mtr
安装目录一般为
/usr/local/sbin/mtr
/usr/local/sbin/mtr-packet
之前敲mtr会
mtr: command not found
创建软链接
ln -s /usr/local/sbin/mtr /usr/local/bin/mtr
ln -s /usr/local/sbin/mtr-packet /usr/local/bin/mtr-packet
mtr需要root权限执行
host:sbin user$ mtr
mtr-packet: Failure to open IPv4 sockets
mtr-packet: Failure to open IPv6 sockets
mtr: Failure to start mtr-packet: Invalid argument
执行
sudo mtr baidu.com
网友评论