diff --git a/utils/speedtest/speedtest2.sh b/utils/speedtest/speedtest2.sh index a45fc28e3..e050600a5 100644 --- a/utils/speedtest/speedtest2.sh +++ b/utils/speedtest/speedtest2.sh @@ -1,10 +1,19 @@ +#准备好所需文件 +wget -O clash.gz https://github.com/Dreamacro/clash/releases/download/v1.11.8/clash-linux-amd64-v1.11.8.gz +gunzip clash.gz wget -O lite-linux-amd64 https://github.com/mahdibland/SSAggregator/releases/download/1.0.0/lite-linux-amd64 +wget -O clash_config.yml https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/utils/speedtest/clash_config.yml wget -O proxychains.conf https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/utils/speedtest/proxychains.conf wget -O lite_config.json https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/utils/speedtest/lite_config.json -# proxychains +#初始化 Clash +chmod +x ./clash && ./clash & +#安装并配置 proxychains sudo apt-get install proxychains sudo chmod 777 ../../../../../../etc/proxychains.conf mv -f proxychains.conf ../../../../../../etc/proxychains.conf +#开始运行 Clash +sudo pkill -f clash +#./clash -f clash_config.yml & #运行 LiteSpeedTest chmod +x ./lite-linux-amd64 -sudo nohub proxychains ./lite-linux-amd64 --config ./lite_config.json --test https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/Eternity >speedtest.log 2>&1 & +sudo nohup proxychains ./lite-linux-amd64 --config ./lite_config.json --test https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/Eternity.yml >speedtest.log 2>&1 &