speedtest-cli仅可以测试最近的几台服务器,这不符合需求,只好fork,自行修改,加入server-url,自己指定需要测试的服务器地址
北京移动
$ speedtest-cli --server-url http://speedtest.bmcc.com.cn:8080/speedtest/upload.php
上海联通
$ speedtest-cli --server-url http://5g.shunicomtest.com:8080/speedtest/upload.php
天津电信
$ speedtest-cli --server-url http://tjrate.tjtele.com:8080/speedtest/upload.php
上海电信
$ speedtest-cli --server-url http://speedtest1.online.sh.cn:8080/speedtest/upload.php
https://github.com/lbp0200/speedtest-cli
需要python,如果只有python3,可以做个软连接,sudo ln -s /usr/bin/python3 /usr/bin/python
wget -O speedtest-cli https://raw.githubusercontent.com/lbp0200/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
sudo mv speedtest-cli /usr/local/bin/speedtest-cli
SpeedTest 全球测试点列表
https://williamyaps.github.io/wlmjavascript/servercli.html