VPS常用测试脚本合集

马肤
这是懒羊羊

温馨提示:这篇文章已超过809天没有更新,请注意相关的内容是否还可用!

简介:

※这类脚本是综合测试VPS基础信息、硬盘IO、带宽和网络延迟等项目的一键式脚本,主要有以下几个

1、秋水逸冰大佬的Bench.sh脚本

特点:
显示当前测试的各种系统信息;
取自世界多处的知名数据中心的测试点,下载测试比较全面;
支持 IPv6 下载测速;
IO 测试三次,并显示平均值。
使用:

wget -qO- bench.sh | bash#或者curl -Lso- bench.sh | bash#或者wget -qO- 86.re/bench.sh | bash#或者curl -so- 86.re/bench.sh | bash

Github地址:https://github.com/teddysun/across/blob/master/bench.sh
演示图:

VPS常用测试脚本合集,nbsp,测试,https,脚本,wget,第1张

2、老鬼大佬的SuperBench测试脚本

这个脚本是在基于秋水大佬脚本的基础上,加入了独服通电时间,服务器虚拟化架构等内容

特点:
改进了显示的模式,基本参数添加了颜色,方面区分与查找。
I/O测试,更改了原来默认的测试的内容,采用小文件,中等文件,大文件,分别测试IO性能,然后取平均值。
速度测试替换成了 Superspeed 里面的测试,第一个默认节点是,Speedtest 默认,其他分别测试到中国电信,联通,移动,各三个不同地区的速度。
Github地址:https://github.com/oooldking/script/blob/master/superbench.sh

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash#或者curl -Lso- -no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

演示图:

VPS常用测试脚本合集,nbsp,测试,https,脚本,wget,第2张

3、Zbench
脚本由漏水和kirito,基于Oldking大佬 的 SuperBench,然后加入Ping以及路由测试的功能,还能生成测评报告,分享给其他人查看测评数据

#中文版wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh#英文版wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh

演示图:

VPS常用测试脚本合集,nbsp,测试,https,脚本,wget,第3张

4、LemonBench

LemonBench工具(别名LBench、柠檬Bench),是一款针对Linux服务器设计的服务器性能测试工具。通过综合测试,可以快速评估服务器的综合性能,为使用者提供服务器硬件配置信息。

#快速测试curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast

wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast


#完整测试
curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full


wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full

内存检测脚本

检测VPS真实可分配内存的小工具,适用于检测VPS超售情况。本程序检测的可分配内存指的是用户使用时最大能占用的内存量。

#CentOS / RHELyum install wget -yyum groupinstall "Development Tools" -ywget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cppgcc -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

UnixBench测试脚本
UnixBench是一个类unix系(Unix,BSD,Linux)统下的性能测试工具,一个开源工具,被广泛用与测试linux系统主机的性能。Unixbench的主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.shchmod +x unixbench.sh./unixbench.sh

带宽测试
speedtest是一个用Python编写的轻量级Linux命令行工具,在Python2.4至3.4版本下均可运行。它基于Speedtest.net的基础架构来测量网络的上/下行速率。
https://www.idcfq.com/archives/156.html

Ping值测试
uPing-一个24小时监测VPS延迟的工具

依赖安装

#Debian / Ubuntuapt-get updateapt-get install python wget screen -y

 


#CentOS / RHEL
yum install screen wget python -y

使用方法

screen -S upingwget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/uPing/master/uping.pypython uping.py

VPS常用测试脚本合集,nbsp,测试,https,脚本,wget,第4张

回程路由测试
从你的 Linux(X86/ARM)/Mac/BSD 系统环境下发起 traceroute 请求,附带链路可视化,兼容性更好,支持 JSON 格式

#创建一个目录mkdir test && cd test#下载Best Trace for Linux并解压wget https://cdn.ipip.net/17mon/besttrace4linux.zip && unzip besttrace4linux.zip#添加执行权限chmod +x besttrace#路由跟踪./besttrace -q 1 8.8.8.8 #换成目标IP

最后感谢各个脚本的制作者!



文章版权声明:除非注明,否则均为VPS857原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复:表情:
评论列表 (暂无评论,490人围观)

还没有评论,来说两句吧...

目录[+]

取消
微信二维码
微信二维码
支付宝二维码