我们在购买到一台服务器之后,有没有习惯测速看看是否满足我们的业务需要的?或者我们需要测试看看商家的宣传的速率和我们实际的是否相符。这里我们常用的脚本工具是SuperSpeed.SH,一个托管的开源的源码。这里开发者又重新调整后支持集成了 Speedtest 提供的电信、联通、移动线路,可以测试服务器到全国北方南方,电信,联通,移动的速度。
使用全国各地三大运营商的 speedtest 测速节点进行全面测速。
bash <(curl -Lso- https://git.io/superspeed_uxh)
备用测速脚本:
bash <(curl -Lso- https://raw.githubusercontent.com/uxh/superspeed/master/superspeed.sh)
文章源自玩技e族-https://www.playezu.com/714594.html
LemonBench综合测试脚本
LemonBench是一款比较全面的Linux系统服务器性能测试脚本,可以一键测试服务器基本信息、网络信息、CPU内存硬盘性能、网络下载速度以及路由追踪情况。也是云搜网最喜欢使用的一个测试脚本。LemonBench脚本分为快速测试脚本和全面测试脚本两个类别,这个大家可以根据自己需要进行体验。文章源自玩技e族-https://www.playezu.com/714594.html
yum -y install wget wget -O- https://ilemonra.in/LemonBenchIntl | bash -s fast #或 apt-get install curl curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast #备用 yum -y install wget wget -qO- https://raw.githubusercontent.com/27ka.cn9/Superspeed/master/Lemonbench.sh | bash -s fast
yum -y install wget wget -O- https://ilemonra.in/LemonBenchIntl | bash -s full #或 apt-get install curl curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full #备用 yum -y install wget wget -qO- https://raw.githubusercontent.com/27ka.cn9/Superspeed/master/Lemonbench.sh | bash -s full
Superspeed.sh一键测速脚本
这个脚本主要是一键测速服务器到国内电信、联通、移动上行下行带宽的速度。能比较全面的反映服务器真实带宽速度情况!文章源自玩技e族-https://www.playezu.com/714594.html
下面脚本直接中文显示,能比较全面的测试电信、联通、移动速度!可以选择三网一起测试,也可以选择单独测试电信、联通、移动中的任意一条线路。测试节点比较多。文章源自玩技e族-https://www.playezu.com/714594.html
bash <(curl -Lso- https://git.io/superspeed) #备份脚本 bash <(curl -Lso- https://raw.githubusercontent.com/27ka.cn9/Oldkingsuperspeed/master/superspeed.sh)
下面两个脚本是云搜网自己根据superbench.sh脚本修改的测速脚本,根据自己测速习惯增加了海外测速节点!同时这个脚本还可以测试服务器基本信息及硬盘I/O性能。文章源自玩技e族-https://www.playezu.com/714594.html
作者原版测试脚本。文章源自玩技e族-https://www.playezu.com/714594.html
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
国内速度测速脚本(更多测试节点)。文章源自玩技e族-https://www.playezu.com/714594.html
wget -qO- --no-check-certificate https://raw.githubusercontent.com/wn789/Superspeed/master/superbench.sh | bash #或 curl -Lso- -no-check-certificate https://raw.githubusercontent.com/wn789/Superspeed/master/superbench.sh | bash
海外节点测速脚本。文章源自玩技e族-https://www.playezu.com/714594.html
wget -qO- --no-check-certificate https://raw.githubusercontent.com/wn789/Superspeed/master/superbench_hw.sh | bash #或 curl -Lso- -no-check-certificate https://raw.githubusercontent.com/wn789/Superspeed/master/superbench_hw.sh | bash
bench.sh一键测试脚本
bench.sh是比较老的一款服务器速度测试脚本了,主要测试服务器海外节点的下载速度。这个脚本近两年用得比较少了,主要是因为此脚本只能测试服务器本地下行带宽速度,而且是海外节点!文章源自玩技e族-https://www.playezu.com/714594.html
yum -y install wget wget -qO- bench.sh | bash #或者 curl -Lso- bench.sh | bash #或者 yum -y install wget wget -qO- 86.re/bench.sh | bash #或者 curl -so- 86.re/bench.sh | bash
SpeedTest测速脚本
前面提到的superbench.sh测速脚本当中使用的速度测试节点都是提取于SpeedTest的。这里再介绍一个SpeedTest测速脚本。使用教程如下:文章源自玩技e族-https://www.playezu.com/714594.html
1、下载脚本。
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py #备用 wget https://raw.githubusercontent.com/27ka.cn9/Superspeed/master/speedtest.py
2、添加权限
chmod a+rx speedtest.py
3、自动选择节点进行测速。
python speedtest.py #不生成图片 #或 python speedtest.py --share #成图片
4、指定节点进行测速。
首先我们可以通过下面命令把测速节点全部展现出来。
python speedtest.py --list #一次性全部展示出来 或 python speedtest.py --list|more #每按一次回车展现一条
5、然后找到自己需要测速节点的编码,按下面命令进行指定节点速度测速。
python speedtest.py --server 4751 #不生成图片 或 python speedtest.py --server 4751 --share #生成图片
原创声明:本文章为原创内容,所有文章均由博主亲自撰写,严格遵循原创原则。我们承诺不使用任何人工智能生成的内容,所发布的每一篇文章都经过深思熟虑,旨在为读者提供真实、有价值的观点和信息。我们坚信原创才是知识分享的根本,致力于为广大读者呈现最具真实性和独特性的文章。感谢您的支持与关注,欢迎持续关注我们的原创内容。