整理-LinuxVPS 路由以及性能測試
#測試回程路由
dd if=/dev/zero of=Test bs=1M count=500 #生成名為Test並且大小為500M的文件
python -m SimpleHTTPServer 443
#MTR
# CentOS系統:
yum update && yum install mtr -y
# Debian/Ubuntu系統:
apt-get update && apt-get install mtr -y
*使用命令*
mtr x.x.x.x #動態顯示,一直持續下去,除非手動終止
mtr -c 100 --report x.x.x.x #只發送 100個數據包(測試100次)
#測試去程路由
# CentOS系統:
yum update && yum install traceroute -y
# Debian/Ubuntu系統:
apt-get update && apt-get install traceroute -y
*使用命令*
traceroute x.x.x.x
traceroute -q 1 x.x.x.x #默認是測試3次的,所以有時候會顯示很亂,這個參數指的是只測試一次,當然之所以測試3次就為因為可能會丟包等情況,三次可以比較準確。
#在每個路由信息後面加上對應的地址信息,需要使用其他的路由追蹤軟體:
nali-ipip、BestTrace(ipip.net開發),這兩個使用的都是 ipip.net 的IP地址庫。
#nali-ipip
# CentOS系統:
yum update && yum install -y traceroute git gcc make
# Debian/Ubuntu系統:
apt-get update && apt-get install -y traceroute git gcc build-essential make
git clone https://github.com/dzxx36gyy/nali-ipip.git
cd nali-ipip
./configure && make && make install
#nali-traceroute x.x.x.x
#nali-traceroute -q 1 x.x.x.x
#BestTrace
BestTrace是由 ipip.net 官方(不確定)開發的,同樣也需要安裝基礎路由追蹤軟體:traceroute,這個軟體不需要編譯安裝,是用Go語言編譯好的程序
# CentOS系統:
yum update && yum install traceroute -y
# Debian/Ubuntu系統:
apt-get update && apt-get install traceroute -y
apt install unzip
wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
#./besttrace -q 1 x.x.x.x
#一鍵測試腳本bench.sh
命令1:
wget -qO- bench.sh | bash
或者
curl -Lso- bench.sh | bash
命令2:
wget -qO- 86.re/bench.sh | bash
或者
curl -so- 86.re/bench.sh | bash
#https://github.com/teddysun/across/blob/master/bench.sh
#國內測速腳本
curl -Lso- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash


TAG:寒劍夜鳴 |