Linux下使用speedtest测速

 工具介绍

Speedtest测试网络上传/下载速度还是挺不错的,windows下非常方便。Linux下也可以很方便的使用命令行speedtest来测试。speedtest是一个用Python编写的轻量级Linux命令行工具,在Python2.4至3.4版本下均可运行。它基于Speedtest.net的基础架构来测量网络的上/下行速率。安装speedtest很简单——只需要下载其Python脚本文件。

下载安装

wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest

进行测速

[root@VM-4-3-centos ~]# speedtest
Retrieving speedtest.net configuration...
Testing from Tencent cloud computing (43.129.240.92)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Chunghwa Mobile (Hsinchu) [750.87 km]: 15.429 ms
Testing download speed................................................................................
Download: 2.24 Mbit/s
Testing upload speed................................................................................................
Upload: 1.76 Mbit/s

你可能感兴趣的:(网络,Linux,linux,运维,服务器)