综合测试脚本

在我们购买香港VPS,美国VPS,香港服务器,美国服务器之后通常会通过一些脚本对服务器的性能进行测试,以便了解当前配置是否能够满足我们的需求,而不是搭建环境后再来进行配置的增加。

香港VPS,美国VPS,香港服务器,美国服务器购买地址:https://www.cmivps.com

所以我们推荐您使用以下常用脚本

脚本 一

特点:

  1. 显示当前测试的各种系统信息;
  2. 取自世界多处的知名数据中心的测试点,下载测试比较全面;
  3. 支持 IPv6 下载测速;
  4. 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

Demo:

脚本 二

特点:

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

使用方法

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

Demo:

脚本 三

特点:

  1. 加入Ping以及路由测试的功能
  2. 生成测评报告,分享给其他人查看测评数据

使用方法

#中文版
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

Demo:

脚本 四:

  1. 针对Linux服务器设计的服务器性能测试工具。
  2. 通过综合测试,可以快速评估服务器的综合性能,为使用者提供服务器硬件配置信息。

使用方法

curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash
#或者
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash

其他独立脚本

下面介绍的是一些实用服务器测试的独立脚本

Ping值监控脚本

特点:uPing-一个24小时监测VPS延迟的工具

依赖安装

#Debian / Ubuntu
apt-get update
apt-get install python wget screen -y
#CentOS / RHEL
yum install screen wget python -y

使用方法

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

Demo:

Speedtest 带宽测试脚本

Speedtest 是业内最常用,也是最权威的带宽测试网站

使用方法:

Fedora/Centos/Redhat:

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest

Ubuntu/Debian:

sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest