Shell集合:常用VPS一键测试脚本
收集一些懒人适用的shell脚本。
SuperBench.sh
来自老鬼的博客(OldKing.net)的SuperBench.sh v1.0脚本。
脚本特点:
主要可用于获取基本硬件信息、CPU跑分测试、硬盘IO速度、国内网络测速等。
使用方法:
wget -qO- git.io/superbench.sh | bash
使用参数:
wget git.io/superbench.sh; chmod +x superbench.sh
或者
curl -LsO git.io/superbench.sh; chmod +x superbench.sh
./superbench.sh info
./superbench.sh io
./superbench.sh speed
./superbench.sh share
怀恋旧版:
wget -qO- git.io/superbench_old.sh | bash
相关链接:
SuperSpeed.sh
来自老鬼的博客(OldKing.net)一键测试服务器到国内的速度脚本SuperSpeed.sh。
国内一键测速:
wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh && chmod +x superspeed.sh && ./superspeed.sh
相关链接:
Bench.sh
来自秋水逸冰的Bench.sh脚本,可以查看 Linux 系统信息,以及网络带宽及硬盘读写速率测试。
使用方法:
wget -qO- bench.sh | bash
或者
curl -Lso- bench.sh | bash
相关链接:
UnixBench
来自秋水逸冰的UnixBench一键脚本。
UnixBench是一个类unix系(Unix,BSD,Linux)统下的性能测试工具,一个开源工具,被广泛用与测试linux系统主机的性能。主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。
使用方法:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
相关链接:
ZBench
一个一键检测服务器基本性能的脚本,基础代码来自 SpeedTest 和 OldKing 的 SuperSpeed。
测试完之后呢,会在 /root / 下面生成一个 report.html 的文件。
使用方法:
wget https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
或者
wget -qO- –no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh | bash
或者
wget -N —no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
或者
wget https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh
相关链接:
LemonBench
来自博客@极光星空的一款针对Linux服务器设计的服务器性能测试工具。别名LBench、柠檬Bench。通过综合测试,可以快速评估服务器的综合性能,为使用者提供服务器硬件配置信息。
LemonBench目前涵盖了如下测试:
服务器基础信息 (CPU信息/内存信息/Swap信息/磁盘空间信息/网络信息等)
流媒体解锁测试 (目前支持HBO Now/动画疯/B站港澳台/B站台湾限定)
系统性能测试 (CPU/内存/磁盘)
Speedtest网速测试 (本地到最近源及国内各地域不同线路的网速)
路由追踪测试 (追踪到国内和海外不同线路的路由信息)
使用方法
快速测试
如果你的服务器上安装有 curl 工具,请使用以下命令执行脚本:
curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast
如果你的服务器上安装有 wget 工具,请使用以下命令执行脚本:
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast
完整测试
如果你的服务器上安装有 curl 工具,请使用以下命令执行脚本:
curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
如果你的服务器上安装有 wget 工具,请使用以下命令执行脚本:
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
【注意】由于测试用时较长,为防止发生SSH断线意外,推荐放在screen中运行!
相关链接:
极光星空 - Linux服务器综合测试工具 LemonBench
mPing.sh
mPing回程测试,可以测试回程PING检测。
wget https://raw.githubusercontent.com/helloxz/mping/master/mping.sh
bash mping.sh
锐速破解全功能版
来自91yun的锐速破解版linux一键自动安装包,2017年5月28日更新,不支持openvz架构!
安装方法:
wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh
卸载方法:
chattr -i /serverspeeder/etc/apx* && /serverspeeder/bin/serverSpeeder.sh uninstall -f
相关链接:
锐速 serverSpeeder
来自hostloc大佬@Vicer的锐速 serverSpeeder脚本。
安装方法:
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh" && bash /tmp/appex.sh 'install'
卸载方法:
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh" && bash /tmp/appex.sh 'uninstall'
相关链接:
魔改BBR
来自hostloc大佬@南琴浪的魔改BBR一键安装脚本。
安装方法:
General KVM版
wget https://raw.githubusercontent.com/tcp-nanqinlang/general/master/General/CentOS/bash/tcp_nanqinlang-1.3.2.sh && chmod +x ./tcp_nanqinlang-1.3.2.sh && bash ./tcp_nanqinlang-1.3.2.sh
lkl-rinetd OpenVZ版
wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos.sh && chmod +x tcp_nanqinlang-rinetd-centos.sh && bash tcp_nanqinlang-rinetd-centos.sh
相关链接:
PING速度测试
2、http://www.webkaka.com/Ping.aspx
Ping工具可以检测到较多国内和国外节点的PING速度,在一定程度上PING速度也是比较重要的,可以看到服务器的丢包情况,以及速度。比如我们在选择美国VPS主机的时候,一般能在200速度之内算是不错的。
路由节点跟踪
1、http://www.webkaka.com/Tracert.aspx
2、https://www.ipip.net/traceroute.php
路由跟踪测试还是有必要的,我们可以看到服务器IP节点的走向,比如我们在选择有些所谓的香港、新加坡节点的时候,但是实际上可能先走到日本、美国,然后再到国内的。所以,我们在选择服务器机房的时候,不能只看地理位置,同样的线路走向有很大的区别。