centOS7通过SpeedTest工具测速

首先要安装SpeedTest工具,这里提供两种方法安装SpeedTest:

一、通过直接下载SpeedTest脚本,给权限运行脚本即可

[[email protected] ~]#wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

[[email protected] ~]#chmod +x speedtest-cli

[[email protected] ~]#./speedtest-cli --share

centOS7通过SpeedTest工具测速

二、通过pip安装

[[email protected] ~]# wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate

[[email protected] ~]# python get-pip.py

[[email protected] ~]# pip install speedtest-cli
centOS7通过SpeedTest工具测速

三、查看所有国内测试节点
centOS7通过SpeedTest工具测速

四、指定测试节点测试
centOS7通过SpeedTest工具测速