首先要安裝SpeedTest工具,這里提供兩種方法安裝SpeedTest:
一、通過直接下載SpeedTest腳本,給權限運行腳本即可
[root@bogon ~]#wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
[root@bogon ~]#chmod +x speedtest-cli
[root@bogon ~]#./speedtest-cli --share

二、通過pip安裝
[root@bogon ~]# wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
[root@bogon ~]# python get-pip.py
[root@bogon ~]# pip install speedtest-cli

三、查看所有國內測試節點

四、指定測試節點測試

