zoukankan      html  css  js  c++  java
  • 使用Speedtest CLI测试你的网速

    在本文中我们将使用一个名为speedtest-cli的命令行工具来测试网速。它是用Python语言编写的工具,系统通过向speedtest.net网站上传和下载数据来测试带宽。
    环境

    Centos7

    安装speedtest-cli工具

    在安装speedtest-cli之前,我们需要安装先安装python3-pip包管理器,然后通过pip安装speedtest-cli工具。

    [root@localhost ~]# yum -y install python3-pip
    

    使用Speedtest CLI测试你的网速使用Speedtest CLI测试你的网速
    安装成功之后,我们可以用pip3命令安装speedtest-cli:

    [root@localhost ~]# pip3 install speedtest-cli
    

    使用Speedtest CLI测试你的网速使用Speedtest CLI测试你的网速

    通过speedtest cli检测网络
    [root@localhost ~]# speedtest-cli 
    Retrieving speedtest.net configuration...
    Testing from China Telecom (*.*.*.*)...
    Retrieving speedtest.net server list...
    Selecting best server based on ping...
    Hosted by China Telecom JiangSu 5G (Lianyungang) [196.15 km]: 31.424 ms
    Testing download speed................................................................................
    Download: 47.64 Mbit/s
    Testing upload speed......................................................................................................
    Upload: 94.56 Mbit/s
    

    使用Speedtest CLI测试你的网速使用Speedtest CLI测试你的网速

    总结

    在本文中我们将使用一个名为speedtest-cli的命令行工具来测试网速。它是用Python语言编写的工具,系统通过向speedtest.net网站上传和下载数据来测试带宽。

    本文原创地址:https://www.linuxprobe.com/use-speedtest-cli.html编辑:逄增宝,审核员:逄增宝

  • 相关阅读:
    软件架构师是如何工作
    安装flume由于HBASE出现的错误
    学习记录(Python集合)
    bzoj4199: [Noi2015]品酒大会
    清橙A1484
    codeforces 232D Fence
    bzoj2337: [HNOI2011]XOR和路径
    bzoj3143: [Hnoi2013]游走
    codeforces 235 B. Let's Play Osu!
    bestcoder单调区间
  • 原文地址:https://www.cnblogs.com/linuxprobe/p/13939670.html
Copyright © 2011-2022 走看看