CentOS to test speed with command line

Source: Internet
Author: User
Tags chmod centos

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]# 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.