工具介绍
代码语言:javascript复制Speedtest测试网络上传/下载速度还是挺不错的,windows下非常方便。Linux下也可以很方便的使用命令行speedtest来测试。speedtest是一个用Python编写的轻量级Linux命令行工具,在Python2.4至3.4版本下均可运行。它基于Speedtest.net的基础架构来测量网络的上/下行速率。安装speedtest很简单——只需要下载其Python脚本文件。
下载安装
代码语言:javascript复制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
进行测速
代码语言:javascript复制[10:20:02root@htuidc ~]#speedtest
Retrieving speedtest.net configuration...
Testing from Zhengzhou Fastidc Technology Co.,Ltd. (42.51.80.231)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Telecom HeNan 5G (Zhengzhou) [11.00 km]: 16.606 ms
Testing download speed................................................................................
Download: 46.93 Mbit/s
Testing upload speed................................................................................................
Upload: 42.37 Mbit/s
如果脚本下载失败,或者非常慢,可以点击下方进行下载
speedtest.zip