美文网首页
Linux Centos 安装 speedtest-cli 网速

Linux Centos 安装 speedtest-cli 网速

作者: 独行浪子_琼 | 来源:发表于2020-11-16 11:39 被阅读0次

1、使用命令下载 speedtest.py 文件

        命令:   wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

2、修改文件的内容 (如果仅安装了python3的情况下)

   命令:    vi  speedtest.py

修改文件第一行为 python3 

3、迁移文件及修改文件权限等等

命令:   chmod a+rx speedtest.py   

命令:   mv speedtest.py /usr/local/bin/speedtest-cli         

命令:   chown root:root /usr/local/bin/speedtest-cli 

4、测试

命令:   speedtest-cli    

 它会自动发现离你最近的Speedtest.net服务器(地理距离),然后打印出测试的网络上/下行速率

楼主最近是临沂(距离 423公里)

        距离楼主最近的测试点是  临沂(423.6公里) 

        测试结果:上行速度为 1.46Mbit/s  下行速度为 94.01 Mbit/s 

相关文章

网友评论

      本文标题:Linux Centos 安装 speedtest-cli 网速

      本文链接:https://www.haomeiwen.com/subject/owmabktx.html