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
网友评论