美文网首页
centos7测速

centos7测速

作者: 有事找叮当 | 来源:发表于2020-07-07 09:24 被阅读0次

    测速

    此程序是基于Python开发的脚本程序,利用了speedtest.net的服务来测量出上下行的宽带。Speedtest-cli能根据机房离测速服务器的物理距离来列出测速服务器,或者针对某一服务器进行测速,同时还能为你生成一个URL以便你分享你的测速结果。要在Linux上安装最新版本的speedtest-cli,你必须安装2.4-3.4或者更高版本的Python。

    安装:

    [root@localhost ~]# wget https://github.com/sivel/speedtest-cli/archive/master.zip
    
    [root@localhost ~]# unzip master.zip
    
    [root@localhost ~]# python speedtest.py (--bytes,以字节计算)
    
    [root@localhost ~]# python speedtest.py --sahre 下载由你的宽带测试结果生成的图片
    
    [root@localhost ~]# python speedtest.py --list | grep wuhan 查找武汉测速点
    
    [root@localhost ~]# python speedtest.py --server  29353  选择武汉测速点
    
    

    相关文章

      网友评论

          本文标题:centos7测速

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