How to test the network speed of linux server

How to test the network speed of linux server

When it comes to measuring network speed, I believe that many friends know how to operate it on their own computers, but the system we usually use is Windows system, so do you know how to measure network speed on the Linux system?

Today is Ai Xi’s little server knowledge, and I will tell you how to measure the network speed on the Linux system. In our own home, it’s actually fine. Sometimes the speed of the network is not so high, but if it’s a server, it definitely needs to be tested. Internet speed up. Because the server contains your business and programs that provide services to users, etc., often the user's experience determines whether the business and services will pay for it.

Next, enter our server knowledge classroom:

Note: The following test methods are only applicable to the Linux host to test the network connection speed from its own computer to the network service provider.

How to test the network speed of linux server using steps:

Install speedtest-cli

speedtest-cli is a lightweight Linux command line tool written in Python, which can run under Python 2.4 to 3.4. It measures the up/down speed of the network based on Speedtest.net's infrastructure. Installing speedtest-cli is easy - just download its Python script file.

$ wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py         

$ chmod a+rx speedtest.py (this step is to give this file permission)

$ mv speedtest.py /usr/local/bin/speedtest

$ chown root:root /usr/local/bin/speedtest (then write root call command)

[root@kht118kht]# speedtest

Retrieving speedtest.net configuration...

Testing from China Unicom (60.12.8.241)...

Retrieving speedtest.net server list...

Selecting best server based on ping...

Hosted by China Telecom Wuhan Branch (Wuhan) [564.31 km]: 46.601 ms

Testing download speed................................................................................

Download: 7.66 Mbit/s

Testing upload speed................................................................................................

Upload: 14.33 Mbit/s#You can also execute the following command to share the test results and generate the connection of the result pictures [root@kht118 kht]# speedtest --share

Retrieving speedtest.net configuration...

Testing from China Unicom (60.12.8.241)...

Retrieving speedtest.net server list...

Selecting best server based on ping...

Hosted by China Telecom Wuhan Branch (Wuhan) [564.31 km]: 41.679 ms

Testing download speed................................................................................

Download: 10.70 Mbit/s

Testing upload speed................................................................................................

Upload: 13.33 Mbit/s

That's all for today's sharing. I'm Aixi. I hope that today's server knowledge class will be helpful to those in need. See you next time! Pay attention to Aixi and take you to learn more about server knowledge

Guess you like

Origin blog.csdn.net/V13807970340/article/details/130171177