mirror of
https://github.com/mahdibland/V2RayAggregator.git
synced 2026-06-03 21:01:49 +08:00
20 lines
1.1 KiB
Bash
20 lines
1.1 KiB
Bash
#准备好所需文件
|
|
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
|
|
#初始化 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 nohup proxychains ./lite-linux-amd64 --config ./lite_config.json --test subs >speedtest.log 2>&1 &
|