speedtest-cli
speedtest-cli
命令行下测试服务器外网速度
补充说明
speedtest-cli 是一个使用python编写的命令行脚本,通过调用speedtest.net测试上下行的接口来完成速度测试,最后我会测试运维生存时间所在服务器的外网速度。项目地址:https://github.com/sivel/speedtest-cli
安装speedtest-cli
speedtest-cli需要在python 2.4-3.4的环境下,安装方法都很简单,自己选择以下最适合你的一种。
pip方式
|
|
easy_install方式
|
|
github+pip方式
|
|
或者
|
|
下载脚本方式
|
|
或者
|
|
直接下载脚本,给予执行权限即可。
用法
|
|
实例
列出所有在中国的测试服务器:
|
|
结果解释
|
|
|
|
外网速度测试
|
|
- 原文作者:lex
- 原文链接:https://blog.mineor.xyz/posts/linux%E5%91%BD%E4%BB%A4/speedtest-cli/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。