speedtest-cli - 命令行下测试服务器外网速度
命令行下测试服务器外网速度
补充说明
speedtest-cli 是一个使用python编写的命令行脚本,通过调用speedtest.net测试上下行的接口来完成速度测试,最后我会测试运维生存时间所在服务器的外网速度。项目地址:https://github.com/sivel/speedtest-cli
安装speedtest-cli
speedtest-cli需要在python 2.4-3.4的环境下,安装方法都很简单,自己选择以下最适合你的一种。
pip方式
# pip install speedtest-clieasy_install方式
# easy_install speedtest-cligithub+pip方式
# pip install git+https://github.com/sivel/speedtest-cli.git或者
# git clone https://github.com/sivel/speedtest-cli.git
# python speedtest-cli/setup.py install下载脚本方式
# wget -O speedtest-cli https://raw.github.com/sivel/spe ... er/speedtest_cli.py
# chmod +x speedtest-cli或者
直接下载脚本,给予执行权限即可。
用法
实例
列出所有在中国的测试服务器:
结果解释
外网速度测试
Last updated
Was this helpful?