Home>Article>Operation and Maintenance> How to test the upload and download speed of linux server
1. Log in to the home directory of the server and download speedtest.py
sudo wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
2. Add execution permissions and need to have python environment support to execute:
(Related learning video recommendations:linux video tutorial)
sudo chmod 755 speedtest.py ./speedtest.py
[wuyun@localhost home]$ ./speedtest.py Retrieving speedtest.net configuration... Testing from China Telecom (219.131.192.35)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by CTM Internet Services (Macau) [8.74 km]: 43.531 ms Testing download speed................................................................................ Download: 74.49 Mbit/s Testing upload speed................................................................................................ Upload: 80.77 Mbit/s
It is best to choose the network idle time before testing. It automatically discovers the Speedtest.net server closest to you (geographical distance) and then displays the tested network up/down speeds.
Recommended related tutorials:linux tutorial
The above is the detailed content of How to test the upload and download speed of linux server. For more information, please follow other related articles on the PHP Chinese website!