提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
前言
最近正值双十一和黑五,淘了几台VPS,顺便整理一下测试脚本,持续更新
使用前需要先在VPS上安装wget
CentOS/RHEL:
sudo yum install wget
Ubuntu/Debian:
sudo apt install wget
VPS测试脚本合集
1.bench脚本
wget -qO- bench.sh | bash
若没有反应则用:
wget -qO bench.sh https://bench.sh
bash bench.sh
测试效果:
2.superbench脚本
wget -qO- git.io/superbench.sh | bash
测试效果:
3.Zbench
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
测试效果:
4.yabs.sh
curl -sL yabs.sh | bash
测试效果:
5.HyperSpeed
bash <(wget -qO- https://bench.im/hyperspeed)
测试效果:
6.超开检测器
监测服务器当前可用的内存,判断商家是否超开
CentOS / RHEL:
yum install wget -y
yum groupinstall "Development Tools" -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
Ubuntu / Debian:
apt-get update
apt-get install wget build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
测试效果:
还剩370M可用,应该没有超开
7.Geekbench
# 首先,使用 wget 命令下载适用于 CentOS 的 Geekbench 5.2.3 安装包:
wget https://cdn.geekbench.com/Geekbench-5.2.3-Linux.tar.gz
# 下载完成后,解压缩下载的安装包:
tar -xzf Geekbench-5.2.3-Linux.tar.gz
# 进入解压后的目录:
cd Geekbench-5.2.3-Linux
# 最后,运行Geekbench 5.2.3安装程序:
./geekbench5
测试效果:
在浏览器中输入URL以查看结果
白嫖的服务器性能果然一般
8.UnixBench
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
测试效果:
9.综合脚本
wget git.io/vpstest && bash vpstest
测试效果:
总结
感谢编写这些脚本的大佬,希望我的整理能让你更方便的测试你的服务器。