centos8 测试网速(speedtest.py)

1、简介

Command line interface for testing internet bandwidth using speedtest.net

2、Github地址

https://github.com/sivel/speedtest-cli

3、下载(目前版本2.1.2)

方法1:

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

方法1失败也可以直接从github上下载上传到服务器。

4、添加执行权限

chmod 755 speedtest.py

5、运行测速

./speedtest.py

报错误,没有找到python文件夹 

 CentOS默认安装的python版本为3.6.8 

6、修改为python3 执行

 

vim speedtest.py 

7、再次运行测速

./speedtest.py

 

8、参考

https://blog.csdn.net/gwz_6903/article/details/96484700

https://blog.csdn.net/leigin/article/details/106149744

https://github.com/sivel/speedtest-cli/blob/master/speedtest.py

 

 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值