git地址:/sivel/speedtest-cli
首先要安装SpeedTest工具,给相关权限运行脚本即可
[root@ecs-zzo1p /]# wget -O speedtest-cli /sivel/speedtest-cli/master/speedtest.py[root@ecs-zzo1p /]# chmod +x speedtest-cli[root@ecs-zzo1p /]# ./speedtest-cli --shareRetrieving configuration...Testing from Sun Network (Hong Kong) Limited - HongKong Backbon (ip)...Retrieving server list...Selecting best server based on ping...Hosted by STC (Hong Kong) [0.87 km]: 12.999 msTesting download speed................................................................................Download: 9.62 Mbit/sTesting upload speed................................................................................................Upload: 10.74 Mbit/sShare results: /result/11629968996.png
speedtest-cli命令大全
语法格式:speedtest-cli [参数]
常用参数:
参考实例
列出所有在中国的测试服务器:
[root@linuxcool ~]# speedtest-cli --list | grep China
将速度测试的结果生成一张图片的连接,便于你分享 :
[root@linuxcool ~]# speedtest-cli --share
以字节计算的方式来测试上下行速度:
[root@linuxcool ~]# speedtest-cli --bytes
只显示ping和上下行速度:
[root@linuxcool ~]# speedtest-cli --simple
列出所有的服务器距离你的物理距离,单位是千米(km):
[root@linuxcool ~]# speedtest-cli --list
查看国内所有测试节点
[root@ecs-zzo1p /]# ./speedtest-cli --list|| grep ChinaRetrieving configuration...1536) STC (Hong Kong, China) [0.87 km]22126) (Hong Kong, Hong Kong) [0.87 km]34809) HGC環電 (Hong Kong, Hong Kong) [0.87 km]35445) UDomain (Hong Kong, Hong Kong) [0.87 km]2993) Website Solution Limited (Hong Kong, China) [0.87 km]21182) Gemnet LLC (Hong Kong, Hong Kong) [0.87 km]28912) (Hong Kong, Hong Kong) [0.87 km]40326) Boom!VM HK 10G (Hong Kong, China) [0.87 km]42039) LiyingNetwork (Hong Kong, Hong Kong) [0.87 km]42671) Telstra International (Hong Kong, Hong Kong) [0.87 km]35791) SmarTone (Central, Hong Kong) [2.51 km]42740) LSPISP (Central, Hong Kong) [2.51 km]37390) HGC環電 (Central, Hong Kong) [2.57 km]37695) China Unicom Global Limited (TKO, China) [2.57 km]32553) PassKit, Inc. (Sheung Wan, Hong Kong) [3.61 km]34555) HKIX (Hong Kong, Hong Kong) [5.87 km]41835) NETWORK 火星联盟 (Hong Kong, China) [6.85 km]41591) AAEX NETWORK TECHNOLOGY LTD (Hong Kong, Hong Kong) [6.91 km]37639) China Mobile Hong Kong Boardband (Tseung Kwan O, Hong Kong) [11.15 km]37267) 3HK (Tsing Yi, Hong Kong) [11.92 km]13538) CSL (Kwai Chung, Hong Kong) [12.66 km]32155) China Mobile Hong Kong (Kwai Chung, Hong Kong) [12.67 km]40137) xTom (Tsuen Wan, Hong Kong) [13.54 km]
指定测试节点测试
[root@ecs-zzo1p /]# ./speedtest-cli --server=27594 --shareRetrieving configuration...Testing from Sun Network (Hong Kong) Limited - HongKong Backbon (ip)...Retrieving server list...Retrieving information for the selected server...Hosted by ChinaTelecom 5G (Guangzhou) [134.10 km]: 66.232 msTesting download speed................................................................................Download: 2.63 Mbit/sTesting upload speed................................................................................................Upload: 7.42 Mbit/sShare results: /result/11630001786.png
打个广告:最近发现几个不错的影视网站感兴趣的可以看看 策驰影院和小小电影院,全部都是无广告免费电影
如果觉得《CentOS7通过SpeedTest工具网络测速》对你有帮助,请点赞、收藏,并留下你的观点哦!