Debian开启BBR
一键开启BBR,优化VPS速度
1 | echo -e "\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p |
查看是否成功开启
1 | sysctl net.ipv4.tcp_congestion_control |
若返回如下,则表示启动成功:
1 | net.ipv4.tcp_congestion_control = bbr |
开启WARP
详细教程 https://lot.pm/cloudflare-warp.html
自动配置 WARP WireGuard 双栈全局网络(所有出站流量走 WARP 网络)
1 | bash <(curl -fsSL git.io/warp.sh) d |
自动配置 WARP WireGuard IPv4 网络(IPv4 出站流量走 WARP 网络)
1 | bash <(curl -fsSL git.io/warp.sh) 4 |
自动配置 WARP WireGuard IPv6 网络(IPv6 出站流量走 WARP 网络)
1 | bash <(curl -fsSL git.io/warp.sh) 6 |
查看菜单
1 | bash <(curl -fsSL git.io/warp.sh) menu |
回程测试
TCP回程测试
1 | curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash |
ICMP回程
1 | wget -qO- git.io/autobesttrace | bash |
流媒体解锁测试
脚本1
1 | bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) |
脚本2
1 | bash <(curl -sL unlock.moe) |
性能测试YABS
默认(硬盘、网络、Geekbench6)
1 | curl -sL yabs.sh | bash |
快速模式(跳过网络测试,仅测硬盘和Geekbench5)
1 | curl -sL yabs.sh | bash -s -- -i5 |
跳过硬盘测试,保留其他
1 | curl -sL yabs.sh | bash -s -- -fd |
跳过网速测试,保留其他
1 | curl -sL yabs.sh | bash -s -- -i |
跳过Geekbench,保留其他
1 | curl -sL yabs.sh | bash -s -- -g |
换为Geekbench 5,保留其他
1 | curl -sL yabs.sh | bash -s -- -5 |
仅测硬盘
1 | curl -sL yabs.sh | bash -s -- -ig |
仅测速
1 | url -sL yabs.sh | bash -s -- -fdg |
仅测Geekbench 5
1 | curl -sL yabs.sh | bash -s -- -fdi5 |
仅测Geekbench 5 和 Geekbench 6
1 | curl -sL yabs.sh | bash -s -- -fdi56 |
测速
国内测速
测试VPS到国内电信、移动、联通和教育网的速度以及到亚洲的速度(支持IPv4、Ipv6、单线程、多线程)
1 | bash <(curl -Lso- https://bench.im/hyperspeed) |
全球测速
默认全球
1 | curl -sL network-speed.xyz | bash |
区域测速
1 | region_name = na, sa, eu, asia, africa, middle-east, india, china, iran |
实例(仅测亚洲)
1 | curl -sL network-speed.xyz | bash -s -- -r asia |
注:一次测速约耗时10-15分钟,消耗流量几十G至上百G不等。
宝塔面板
7.7原版&开心版
纯原版1:
1 | curl -sSO https://raw.githubusercontent.com/zhucaidan/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh |
纯原版2:
1 | wget -O install.sh http://f.cccyun.cc/bt/install_6.0.sh && bash install.sh |
升级(降级)到7.7命令:
1 | curl http://f.cccyun.cc/bt/update6.sh|bash |
宝塔7.7原版一键开心脚本
1 | curl -sSO https://raw.githubusercontent.com/ztkink/bthappy/main/one_key_happy.sh && bash one_key_happy.sh |
新版开心版
Centos安装命令(默认安装是7.8.0 直接在线升级7.9.3):
1 | yum install -y wget && wget -O install.sh http://io.bt.sy/install/install_6.0.sh && sh install.sh |
试验性Centos/Ubuntu/Debian安装命令 独立运行环境(py3.7) 可能存在少量兼容性问题 不断优化中
1 | curl -sSO http://io.bt.sy/install/install_panel.sh && bash install_panel.sh |
Ubuntu Deepin安装命令:
1 | wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && sudo bash install.sh |
Debian安装命令:
1 | wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && bash install.sh |
Fedora安装命令:
1 | wget -O install.sh http://io.bt.sy/install/install_6.0.sh && bash install.sh |
Linux面板 7.9.3 升级企业版命令 1(7.9.3 官方版 / 7.7.0 开心版 可以执行这个升级到 7.9.3 开心版):
1 | curl https://io.bt.sy/install/update_panel.sh|bash |
讲解:升级企业版命令 1 与 升级企业版命令 2 二选一 都可以升级最新版!
Linux面板 7.9.3 升级企业版命令 2(7.9.3 官方版 / 7.7.0 开心版 可以执行这个升级到 7.9.3 开心版):
1 | curl http://io.bt.sy/install/update6.sh|bash |