我们在选择云服务器和VPS主机之后肯定希望知道实际的性能如何。在我们体验实际的速度之外,服务器之间还是需要比较硬件和网络的参数的,就好比我们买手机和电脑要跑分一样的道理。服务器也是可以用软件测试性能参数的。在这里,老左准备整理10+的云服务器性能测试脚本工具。
一键 DD 网络重装脚本
moeclub 脚本
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 12 -v 64 -p 密码 -port 端口 -a -firmware
leitbogioro 脚本(推荐)
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd '密码'
服务器综合测试脚本
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
性能测试脚本
YABS(推荐)
wget -qO- yabs.sh | bash
流量稀缺的服务器
curl -sL yabs.sh | bash -s -- -i
geekbench5
curl -sL yabs.sh | bash -s -- -5
LemonBench
wget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast
unixbench.sh跑分
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
网络测试脚本
hyperspeed 三网测速(推荐)(未开源)
bash <(curl -Lso- https://bench.im/hyperspeed)
AutoTrace 三网回程线路显示(推荐)
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
SuperBench.sh 网络带宽及硬盘读写速率(国内三网+speedtest+fast)
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
内存填充测试
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
流媒体测试脚本
RegionRestrictionCheck(推荐)
bash <(curl -L -s check.unlock.media)
BBR脚本
一键开启BBR(适用于较新的Debian、Ubuntu)
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
ylx大佬的锐速/BBRPLUS/BBR2
wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
独立服务器硬盘时间
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
宝塔一键挂载硬盘脚本
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
腾讯云删除监控
sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
do
kill -9 $A
done
done
测试 25 端口是否开放
telnet smtp.aol.com 25