Tutorial: Several methods on how to test VPS network speed in Linux environment

888u

Last update at :2024-05-30,Edit by888u

Tutorial: How to test in Linux environmentVPS Internet speed Several methods

Of course, there are quite a few one-click packages made by netizens online, and those who prefer not to bother can just use them.

As follows:

wget -qO- bench.sh | bash

The above one is done. Relevant vps data will appear, such as CPU memory, and some common foreign node speeds.

Here are some more methods:

1.speedtest

The most famous speed test website on the Internet. Many server vendors have also used its services or functions.

Speedtest.net is perhaps the most widely used and supports the sharing of network speed test results. It also supports PC-based online network speed testing. It loads JavaScript code in your browser and automatically detects the Speedtest.net closest to you. server, and then send HTTP GET and POST requests to the server to test the upstream/downstream network speed.

Speedtest.net provides a command line version - speedtest-cli to deal with when there is no graphical desktop (for example, when you remotely log in to the server through the command line or use an operating system without a graphical interface), based on flash, user-friendly interface Speedtest.net won't work problem.

If you are interested in extending a similar gadget on Linux, you can follow the project below to install and test it.

speedtest-cli is a lightweight Linux command line tool written in Python and can be run under Python versions 2.4 to 3.4. It is based on Speedtest.net's infrastructure to measure the network's up/down speed. Installing speedtest-cli is easy - just download its Python script file. speedtest-cli tool address Address: https://github.com/sivel/speedtest-cli

2.bmon

1) Add yum source to facilitate the installation of bmon

# rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # yum install bmon – bandwidth monitor You can monitor the status of network traffic under the shell (with dynamic effects)

RX: flow in

TX: Outflow

After the installation is successful, enter the bmon command, select eth0 and press g, then d. View the effect as follows:

Default 1 #bmon 01

View it in a basic way:

# bmon -o ascii -p eth0

bmon

1. Add yum source to facilitate the installation of bmon

# rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # yum install bmon – bandwidth monitor You can monitor the status of network traffic under the shell (with dynamic effects)

RX: flow in

TX: Outflow

After the installation is successful, enter the bmon command, select eth0 and press g, then d. View the effect as follows:

Default 1 #bmon 01

View it in a basic way:

# bmon -o ascii -p eth0

Of course, in addition to the above two, there are many more. For example, iftop can be used to monitor the real-time traffic of the network card (you can specify the network segment), reversely analyze IP, display port information, etc. The details of the parameters will be used later. Description.

It depends on your personal preference. Of course, the most important thing is the local speed. If you are a website server, you also need speed feedback from various places. You can use chinaz's super ping or something like that. I have a rough idea. When selecting VPS and servers for evaluation, all hardware configurations and peripheral reference performance can only be used as a reference, because in the end we still have to consider the actual project opening speed and user experience, which is the key.

Recommended site searches: US server rental, US anti-attack server, ip proxy address, asp host space, Shandong website registration, cn domain name price, Taiwan server rental, Japanese server rental Japanese server, domain name space, asp.net host,

Tutorial: Several methods on how to test VPS network speed in Linux environment

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码