CentOS 7安装SpeedTest实现网络测速

作者: 溯水心生 | 来源:发表于2018-03-25 16:21 被阅读1196次

    1.安装Pip

    wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
    

    2.执行安装

    python get-pip.py
    

    3.下载SpeedTest

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

    增加客执行权限

    chmod +x speedtest-cli
    

    4.安装SpeedTest

    Pip install speedTest
    

    5.使用测速

    查询安装位置

    [root@localhost speedTest]# which speedtest-cli
    /usr/bin/speedtest-cli
    

    以图片方式共享测速结果

    [root@localhost speedTest]#  /usr/bin/speedtest-cli --share
    Retrieving speedtest.net configuration...
    Testing from China Telecom Liaoning (59.44.199.174)...
    Retrieving speedtest.net server list...
    Selecting best server based on ping...
    Hosted by China Unicom,Liaoning Branch (Shenyang) [238.93 km]: 20.035 ms
    Testing download speed................................................................................
    Download: 10.18 Mbit/s
    Testing upload speed................................................................................................
    Upload: 5.18 Mbit/s
    Share results: http://www.speedtest.net/result/7141466123.png
    

    相关文章

      网友评论

        本文标题:CentOS 7安装SpeedTest实现网络测速

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