1. Under the/usr/local/src/
# wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
2. If the error
Connecting raw.github.com|151.101.100.133|:443 ... is connected.
error: Certificate generic name "www.github.com" does not match the required hostname "raw.github.com". To connect to raw.github.com in unsafe
ways, use '--no-check-certificate '.
# wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py--no-check-certificate
# chmod A+rx speedtest_cli.py
3. If you want to facilitate the use of SPEEDTEST-CLI
[root@cloud/usr/local/src]# ll
total dosage
-rw-r--r--1 root 24994 October 9 09:53 speedtest_cli.py
[ Root@cloud src]# chmod a+rx speedtest_cli.py
[Root@cloud src]# ll
total dosage
-rwxr-xr-x 1 root 24994 October 9 09:53 speedtest_cli.py
[root@cloud src]# speedtest-cli-bash:speedtest-cli:command not
found
[ Root@cloud src]# mv speedtest_cli.py/usr/local/bin/speedtest-cli
[Root@cloud src]# chown BIN/SPEEDTEST-CLI
[Root@cloud src]# speedtest-cli
retrieving speedtest.net ...
Retrieving Speedtest.net server list
... Testing from Anchnet (118.193.192.96)
... Selecting best server based on latency ...
Hosted by Shanghai Branch, our Unicom (Shanghai) [19.64 km]: 34.985 ms testing download ...........
..................
download:12.37 mbit/s
testing upload speed ....... ..... ..... ..... ..... ..... ..... ..... ..... ..... ....
. ... upload:1.95 mbit/s
[Root@cloud src]#