前言

  • 有时候会自己买VPS搭梯子玩玩,而ss/ssr/v2都已经有非常好用的一键脚本了,以下就记录下用到的一键脚本,方便以后使用;
  • 我一般都是都是装Debain系统,所以以下记录的都是Debain适用的。

VPS综合性能测试脚本

Bench.sh

脚本出处:https://teddysun.com/444.html

wget -qO- bench.sh | bash

SuperBench.sh

脚本出处:https://www.oldking.net/350.html

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

UnixBench.sh

脚本出处:https://teddysun.com/245.html

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

LemonBench

脚本出处:https://blog.ilemonrain.com/linux/LemonBench.html

# 快速测试
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast

# 完整测试
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full

VPS网络测试脚本

speedtest-cli

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
mv speedtest-cli /usr/bin/

常用命令

speedtest-cli
speedtest-cli --bytes 以字节计算的方式来测试
speedtest-cli --share 生成图片分享
speedtest-cli --simple 只显示ping和上下行速度
speedtest-cli --help 显示可用命令

Superspeed

脚本出处:GitHub

bash <(curl -Lso- https://git.io/superspeed)

MTR

安装

apt update
apt upgrade
apt install mtr-tiny

使用

mtr -rw ip

ip 自己替换成本地地址;参数设定可以通过mtr -h 查看;更详细解释请看这篇文章

梯子搭建脚本

Shadowsocks

脚本出处:https://teddysun.com/486.html

wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

管理脚本/etc/init.d/shadowsocks-libev start | stop | restart | status

配置文件/etc/shadowsocks-libev/config.json

ShadowsocksR

脚本出处:https://doub.io/ss-jc42/

wget -N --no-check-certificate https://softs.wtf/Bash/ssr.sh && chmod +x ssr.sh && bash ssr.sh

# 备用地址
wget -N --no-check-certificate https://raw.githubusercontent.com/WithdewHua/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh

运行脚本bash ssr.sh

管理脚本/etc/init.d/ssr start| stop | restart | status

配置文件/etc/shadowsocksr/user-config.json

V2Ray

脚本出处:https://v2ray666.com/post/1/

bash <(curl -s -L https://v2ray666.com/v2ray.sh)

如果提示 curl: command not found, 先执行apt-get update -y && apt-get install curl -y

运行脚本V2Ray

管理脚本1.png

配置文件:/etc/v2ray/config.json

梯子优化

Debain 9+ 开启 BBR 等

echo "vm.swappiness = 10" >> /etc/sysctl.conf
echo "net.core.default_qdisc = fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.conf
echo "net.ipv4.tcp_fastopen = 3" >> /etc/sysctl.conf
sed -i '$a root hard nofile 1024000\nroot soft nofile 1024000' /etc/security/limits.conf
sed -i '$a * hard nofile 1024000\n* soft nofile 1024000' /etc/security/limits.conf
ulimit -n 1024000
sysctl -p

BBR脚本

脚本出处:https://doub.io/wlzy-16/

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh

# 备用地址
wget -N --no-check-certificate https://raw.githubusercontent.com/WithdewHua/doubi/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh

暴力BBR脚本

脚本出处:https://www.moerats.com/archives/523/

wget https://raw.githubusercontent.com/iiiiiii1/tcp_nanqinlang-test/master/tcp_nanqinlang-test.sh
bash tcp_nanqinlang-test.sh

致谢

以上脚本基本上都给了作者博客文章的链接,衷心感谢秋水逸冰Toyo233OldKing南琴浪AI等几位大佬写的脚本。

最后修改:2019 年 12 月 21 日 12 : 45 AM
如果觉得我的文章对你有用,请随意赞赏