1. Talk is cheap.Show me your code.

    1. # 如果已有git请忽略
    2. yum -y install git
    3. # 克隆speedtest项目到本地
    4. git clone https://github.com/sivel/speedtest-cli.git
    5. # 进入speedtest-cli目录
    6. cd speedtest-cli
    7. # 运行测速脚本
    8. python speedtest.py
    9. # 多测几次取平均值
    10. # 单位换算:Mbit/s = Mbps = Mb/s * 8