forked from bilibili/mtr
-
Notifications
You must be signed in to change notification settings - Fork 0
mtr 增加IP解析功能, a network diagnostic tool
License
nutsteam/mtr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
## 安装方法
### 编译
如果需要biliip解析功能,请使用以下命令编译:
./bootstrap.sh
./configure --without-gtk --disable-ipv6 --with-biliip
make -j8
make install
### 下载IP库
下载以下地址中的数据文件放置至
/usr/share/BiliIP/BiliIP.dat
http://wsdownload.hdslb.net/BiliIP.dat.gz
运行时使用以下两种方式:
MTR_OPTIONS="-R" mtr
mtr -R
## MAC 安装示例
* 原生 mtr 添加了 位置显示 和 DNS反向解析。
### 编译环境准备
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install automake
brew install wget
brew install gtk+
### 下载源码
git clone https://github.com/Bilibili/mtr
### 编译安装
cd mtr
./bootstrap.sh
./configure --without-gtk --disable-ipv6 --with-biliip
make -j8
sudo bash -c 'cp mtr /usr/local/bin && mkdir /opt/mtr && chmod +s /usr/local/bin/mtr && mkdir -p /opt/mtr/BiliIP && wget http://wsdownload.hdslb.net/BiliIP.dat.gz -O - | gzip -dc > /opt/mtr/BiliIP.dat'
### Show一把
#### 原生
sudo mtr www.bilibili.com
#### 扩展
sudo mtr -R www.bilibili.com
#### 感谢
IP库国家/城市数据来源:http://www.ipip.net/ 免费版
IP库ISP来源:QQWry / 新浪公开IP查询库
#### 截图

About
mtr 增加IP解析功能, a network diagnostic tool
Resources
License
Security policy
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 91.0%
- Roff 3.8%
- M4 3.2%
- C++ 1.1%
- Makefile 0.5%
- Objective-C 0.4%