VPS/独服常用测试脚本以及软件安装脚本合集
推荐必装系统组件
yum install wget unzip vim mtr epel-release -y
综合工具箱
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
更换内核及开启BBR、BBRPlus、BBR魔改版、WARP
wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/install_kernel.sh && chmod +x ./install_kernel.sh && ./install_kernel.sh
- 安装各个版本的 Linux 内核 包括最新的5.16内核 和 所有LTS内核. 例如 5.10 LTS, 5.4 LTS, 4.19 LTS, 4.14 LTS
- 开启 BBR / BBR Plus / BBR2 网络加速, 切换 FQ / FQ-Codel / FQ-PIE / CAKE 队列调度算法.
- 支持 Debian9+, Ubuntu 16+, CentOS 7+ (AlmaLinux / Rocky Linux)
- 安装 wireguard 和 Cloudflare WARP sock5 client 用于解锁 Netflix 和避免弹出Google人机验证
项目地址:点此前往
综合性能测试脚本
YABS
wget -qO- yabs.sh | bash
单独展示系统信息
wget -qO- yabs.sh | bash -s -- -gif
单独测试磁盘
wget -qO- yabs.sh | bash -s -- -gi
单独测试网络
wget -qO- yabs.sh | bash -s -- -gf
单独测试CPU (GeekBench5)
wget -qO- yabs.sh | bash -s -- -if
Bench.monster
综合测试国际版
wget -qO- bench.monster/speedtest.sh | sed "s/bench4;/bench5;/g" | bash
综合测试大陆版
wget -qO- bench.monster/speedtest.sh | sed "s/bench4;/bench5;/g" | bash -s -- -china
单独展示系统信息
wget -qO- bench.monster/speedtest.sh | bash -s -- -i
单独测试磁盘
wget -qO- bench.monster/speedtest.sh | bash -s -- -io
单独测试网络(国际)
wget -qO- bench.monster/speedtest.sh | bash -s -- -speed
单独测试网络(大陆)
wget -qO- bench.monster/speedtest.sh | bash -s -- -cnspeed
Bench.sh
wget -qO- bench.sh | bash
LemonBench优化版
curl -fsL https://raw.githubusercontent.com/HostEvaluate/LemonBench/master/LemonBench.sh | bash -s fast
SuperBench优化版
wget -qO- https://down.vpsaff.net/linux/speedtest/superbench.sh | sudo bash
独服硬盘测试
SSD:
bash <(wget -qO- git.io/ceshi) -j
HDD:
bash <(wget -qO- git.io/ceshi)
网络路由测试脚本
HyperSpeed(服务器到国内网速测试)
bash <(wget -qO- https://bench.im/hyperspeed)
TCP回程路由测试
curl http://tutu.ovh/bash/returnroute/test.sh|bash
ICMP回程路由测试
wget --no-check-certificate http://tutu.ovh/bash/returnroute/route && chmod +x route && clear && ./route
流媒体解锁测试
bash <(curl -L -s check.unlock.media)
常用命令
内存类型判断
dmidecode -t memory |grep Width |grep -v 'Unknown'
ECC 内存
DataWidth 64
TotalWidth 72
非ECC 内存
DataWidth 64
TotalWidth 64
SATA版本判断
dmesg | grep -i sata | grep 'link up'
- SATA revision 1.0 => 1.5 Gbit/s, 150 MB/s
- SATA revision 2.0 => 3 Gbit/s, 300 MB/s
- SATA revision 3.0 => 6 Gbit/s, 600 MB/s
- SATA revision 3.2 => 16 Gbit/s, 1969 MB/s
内存速度
dmidecode --type 17
常用软件安装脚本
Speedtest
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest -y
speedtest
Geekbench5
wget https://cdn.geekbench.com/Geekbench-5.4.5-Linux.tar.gz --no-check-certificate
tar -xzvf Geekbench-5.4.5-Linux.tar.gz
cd Geekbench-5.4.5-Linux
./geekbench5
Besttrace
wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip besttrace -d /usr/local/bin/
chmod +x /usr/local/bin/besttrace
besttrace -T 8.8.8.8
ADGuard Home (可做本地DNS)
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
宝塔面板
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh