首先要安装SpeedTest工具,给相关权限运行脚本即可
[root@ecs-zzo1p /]# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
[root@ecs-zzo1p /]# chmod +x speedtest-cli
[root@ecs-zzo1p /]# ./speedtest-cli --share
Retrieving speedtest.net configuration...
Testing from Sun Network (Hong Kong) Limited - HongKong Backbon (ip)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by STC (Hong Kong) [0.87 km]: 12.999 ms
Testing download speed................................................................................
Download: 9.62 Mbit/s
Testing upload speed................................................................................................
Upload: 10.74 Mbit/s
Share results: http://www.speedtest.net/result/11629968996.png
speedtest-cli命令大全