Skip to content
楷子狐 edited this page Aug 12, 2015 · 8 revisions

MAC 安装使用

  • 原生 mtr 添加了 位置显示 和 DNS反向解析。

编译环境准备

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install automake
brew install wget

下载源码

git clone https://github.com/Bilibili/mtr

编译安装

cd mtr
./bootstrap.sh && ./configure --without-gtk --disable-ipv6 --with-biliip && make -j4 && chmod +s mtr && sudo bash -c 'cp mtr /usr/local/bin && mkdir -p /usr/share/BiliIP && wget http://wsdownload.hdslb.net/BiliIP.dat.gz -O - | gzip -dc > /usr/share/BiliIP/BiliIP.dat'

Show一把

原生

sudo mtr www.bilibili.com

扩展

sudo mtr -R www.bilibili.com

截图

MAC运行截图