In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the speedtest-cli command in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
Linux common command speedtest-cli is a command line script written in python, which completes the speed test by calling the speedtest.net test interface for testing the upper and lower lines. Finally, I will test the external network speed of the server where the operation and maintenance time is located.
Test the external network speed of the server under the speedtest-cli command line
To install speedtest-clispeedtest-cli, you need to install it in the environment of python 2.4-3.4. the installation method is very simple, so choose the one that suits you best.
Pip mode
# pip install speedtest-clieasy_install method
# easy_install speedtest-cligithub+pip method
# pip install git+ https://github.com/sivel/speedtest-cli.git or
# git clone https://github.com/sivel/speedtest-cli.git # python speedtest-cli/setup.py install download script
# wget-O speedtest-cli https://raw.github.com/sivel/spe... Er/speedtest_cli.py # chmod + x speedtest-cli or
# curl-o speedtest-cli https://raw.github.com/sivel/spe... Er/speedtest_cli.py # chmod + x speedtest-cli downloads the script directly and gives you permission to execute it.
Usage-h,-- help show this help message and exit-- share to share your speed, this command will generate a picture of the speed test results on the speedtest website. -- simple Suppress verbose output, only show basic information-- list displays a list of speedtest.net 's test servers based on distance. -- server=SERVER specifies the server of id in the list to do the test. -- mini=MINI URL of the Speedtest Mini server-- source=SOURCE Source ip address to bind to-- version Show the version number and exit instance lists all test servers in China:
# speedtest-cli-- list | grep China 1185) China Unicom (Changchun, China) [10534.35 km] 3784) China Mobile (Urumqi, China) [10581.15 km] 2667) Beijing Normal University (Beijing, China) [11117.03 km] 2529) Beijing Normal University (Beijing, China) [11117.03 km] 2816) Capital Online Data service (Beijing, China) [11117.03 km] 4354) SXmobile (Taiyuan, China) [11383.17 km] 3973) China Telecom (Lanzhou) China) [11615.43 km] 3633) China Telecom (Shanghai, China) [11983.37 km] 3927) China Mobile Jiangsu Co., Ltd. (Suzhou, China) [11989.27 km] 2461) China Unicom (Chengdu, China) [12213.35 km] 1028) Shepherd Software (Xiamen, China) [12785.57 km] 1628) Xiamen Guangdian Xinxu (Xiamen, China) [12785.57 km] 3891) GZinternet (Guangzhou, China) [13005.36 km] 3871) SZWCDMA (Shenzhen) China) [13059.20 km] 3819) SZU (Shenzhen, China) [13059.20 km] 1536) STC (Hong Kong, China) [13088.37 km] 1890) Telin (Hong Kong, China) [13088.37 km] result interpretation
3633) China Telecom (Shanghai, China) [11983.37 km] 3633: server id china telecom:isp, this is China Telecom shanghai,china: server address 11983.37 km: geographical distance between two servers, my machine is in the United States, 11983.37 kilometers away from Shanghai, it's a long way. External network speed test
[root@li229-12222] # speedtest-cli-- server=3633-- share Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from Linode (173.255.219.122). Hosted by China Telecom (Shanghai) [11983.37 km]: 23.603 ms Testing download speed.. Download: 24.84 Mbit/s Testing upload speed... Upload: 4.57Mbit/s Share results: http://www.speedtest.net/result/3240988007.png Thank you for reading this article carefully. I hope the article "how to use speedtest-cli commands in Linux" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.