Use the Speedtest-cli script tool to test how fast the server bandwidth is

Many of our netizens will usually see the so-called test data through various evaluation blogs when choosing a server, and even some blogs directly post preferential information. In general, it is difficult to choose an excellent server. After we get the server, we need to test the actual speed, for example, we need to test the server's upstream and downstream speed and bandwidth. We see that the 2M 5M bandwidth provided by some hosting companies is actually not as good as other 1M bandwidth cloud servers.

In this article, I am going to share a Speedtest-cli script tool that can test the bandwidth rate of the server. If we are buying a server, including when we use the server, we can also test it.

First, how to install Speedtest-cli

Here we install directly through online scripts.

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

Or we have here an alternate address here to prevent the loss of online addresses.

wget -O speedtest-cli https://bandwagonhoster.com/scripts/speedtest.py
chmod +x speedtest-cli

Second, how to use Speedtest-cli

We log in to the server after SSH, and then download, and then execute.

speedtest-cli

After originally downloading and authorizing the above, when executing "speedtest-cli", you will see the download and execution files and other usage parameters are loaded, but after we execute, the error message "-bash: speedtest-cli: command not found" will appear. Here we need to solve this problem first.

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

mv speedtest.py /usr/local/bin/speedtest-cli

chmod +x /usr/local/bin/speedtest-cli

After authorization, we execute the "speedtest-cli" script.

 

Is not it simple?

Guess you like

Origin www.cnblogs.com/tanger/p/12691461.html