海外服务器常用脚本合集:BBR加速、IP检测、流媒体解锁与性能测试
本文整理了一些常用脚本,方便在海外服务器上快速完成 BBR 加速安装、IP 质量检测、流媒体解锁检测、网络测速、回程路由检测等操作。所有命令都需要在 root 权限下执行,并确保已安装 wget 或 curl。
BBR 安装
支持系统:CentOS 6+、Debian 8+、Ubuntu 14+
安装依赖:
# CentOS
yum install ca-certificates wget -y && update-ca-trust force-enable
# Debian / Ubuntu
apt-get install ca-certificates wget -y && update-ca-certificates
安装脚本:
# 不卸载内核版本(推荐)
wget -N "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
# 卸载内核版本(会替换内核)
wget -N "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
BBR 是 Google 开发的 TCP 拥塞控制算法,可以提升跨境和高延迟网络的吞吐。
IP 质量检测
bash <(curl -Ls IP.Check.Place)
用于检测服务器 IP 是否干净,是否在黑名单,是否能正常访问常见服务。
流媒体平台解锁检测
bash <(curl -L -s media.ispvps.com)
可以检测服务器是否支持解锁 Netflix、Disney+、YouTube Premium 等平台。
网络测速
bash <(curl -Lso- https://bench.im/hyperspeed)
测试服务器的下载、上传速度和延迟,支持多地区节点。
回程路由检测
curl -sSL https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh -o AutoTrace.sh \
&& chmod +x AutoTrace.sh \
&& bash AutoTrace.sh
检测服务器回程线路,可以判断是否走了 CN2、CT、CMI 等线路。
更换软件镜像源
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
一键切换为国内镜像源,例如清华、中科大、阿里云,提高软件包更新速度。
配置 WARP 网络
curl -sSL https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh -o menu.sh && bash menu.sh
WARP 是 Cloudflare 提供的网络工具,可以改善网络质量或更换出口 IP。
服务器性能测试
curl -sSL yabs.sh | bash -s -- -5 -i
YABS 脚本可以测试 CPU、内存、磁盘性能以及网络带宽。
服务器综合测试
curl -sSL https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
综合检测脚本,包含系统信息、硬件性能、网络、流媒体解锁和回程路由。
建议使用顺序
- 更换镜像源,加快安装与更新
- 安装并启用 BBR
- 使用 YABS 进行性能测试
- 检测 IP 质量和流媒体解锁情况
- 测试回程路由
- 按需配置 WARP