Kiểm tra tốc độ mạng máy chủ thông qua lệnh Linux - SpeedTest-CLI

lyly2009

Gà Con

Đóng góp nội dung
#1
Trong hướng dẫn này, chúng tôi sẽ kiểm tra và kiểm tra tốc độ kết nối mạng máy chủ thông qua speedtest-cli (Speedtest của Ookla), điều tốt nhất là bạn có thể trực tiếp cài đặt gói python speedtest vào bản phân phối Linux của mình và chạy thử nghiệm thông qua lệnh terminal nó thật tuyệt.
This will also help you to determine that what exactly network speed your server provider is providing. Without waiting lets get started. Difficulty level : super easy
CentOS :
To install speedtest cli on Centos RHEL based OS follow this commands :-
Install EPEL release :

Mã:
yum install epel-release -y
Then install python and python-pip
Mã:
yum install python python-pip -y
pip install --upgrade pip

Close the ssh console and re-login to ssh
Then install Speedtest-cli package via pip :
Mã:
pip install speedtest-cli

Ubuntu :

To install speedtest cli on debian/ubuntu based OS follow this commands :-
First update the packages :
Mã:
apt-get update

Then install python and python pip :
Mã:
apt-get install python python-pip
pip install --upgrade pip

Close the ssh console and re-login to ssh
Then install Speedtest-cli package via pip :
Mã:
pip install speedtest-cli

All other Linux/Unix OS :

TO install speedtest-cli on different Linux distro use this procedure :-
Ensure python package is already installed on your Linux distro, download speedtest-cli :
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py


Fix the permissions to execute,
Mã:
chmod +x speedtest-cli

Now run below any one command to get the internet speed :
Mã:
./speedtest-cli
Or
python speedtest-cli
Example commands for speedtest-cli :

Run the below commands in order to run the speed test of network
Mã:
speedtest-cli

eg :
[email protected]:~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from tzulo (107.152.32.123)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Lola Wireless (Stone Park, IL) [20.59 km]: 5.242 ms
Testing download speed................................................................................
Download: 954.18 Mbit/s
Testing upload speed................................................................................................
Upload: 901.60 Mbit/s


To share and generate the Speed test link use flag
--share
Mã:
speedtest-cli --share

eg :
[[email protected] ~]# speedtest-cli --share
Retrieving speedtest.net configuration...
Testing from tzulo (107.152.32.123)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Vinakom Communications (Schaumburg, IL) [22.13 km]: 7.004 ms
Testing download speed................................................................................
Download: 792.71 Mbit/s
Testing upload speed................................................................................................
Upload: 537.91 Mbit/s
Share results: http://www.speedtest.net/result/7360604912.png




If this post helps you in any way please consider a donation
 
Top