VPS测速脚本Speedtest-CLI来测试你的上下行网络网速

Speedtest-CLI是什么?

Speedtest-CLI是基于python开发的脚本程序,利用了speedtest.net的服务来测量出上下行的宽带速度。Speedtest-cli能根据机房离测速服务器的物理距离来列出测速服务器,或者针对某一服务器进行测速,同时还能为你生成一个URL以便你分享你的测速结果。

VPS测速脚本Speedtest-CLI来测试你的上下行网络网速

这里提供多种安装方式可以供你参考

第一种,也是简单易上手的

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli

第二种

pip方式安装

pip install speedtest-cli

 或

easy_install speedtest-cli

注:这种安装方式的前提是系统安装了python-pip包管理器,这样你才能使用pip命令安装

第三种,通过github方式安装

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

注:这种安装方式的前提是系统安装了git客户端,这样你才能使用git命令安装

命令介绍

speedtest-cli --bytes以字节计算的方式来测试上下行速度

speedtest-cli --share 将速度测试的结果生成一张图片的连接,便于你分享

speedtest-cli --simple只显示ping和上下行速度

speedtest-cli --list 列出speedtest.net所有的服务器距离你的物理距离,单位是千米(km)

speedtest-cli -h可以得到更多相关的命令

分享技巧

CentOS下创建VG卷组

2021-3-1 23:02:07

随便说说

宝塔面板Linux版PHP手动安装扩展脚本?

2021-6-12 1:01:24

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索