linux网速测试


linux网速测试

2019年03月04日
系统版本:CentOS Linux release 7.5.1804

参考文档

https://jingyan.baidu.com/article/f006222814b0eefbd2f0c873.html


linux命令行界面用 speedtest 测网速,linux版本是基于python,网站是 speedtest.net

因为是下载githup版本库上的软件,linux上要安装git客户端
# yum -y install git

使用git下载测试软件
# git clone https://github.com/sivel/speedtest-cli.git

运行speedtest.py
# ./speedtest-cli/speedtest.py

能显示公网IP地址,又能显示上传下载的速度,多测试几次取平均值会使结果更准确。

[root@localhost ~]# ./speedtest-cli/speedtest.py 
Retrieving speedtest.net configuration...
Testing from China Mobile Guangdong (x.x.x.x)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Mobile Group Beijing Co.Ltd (Beijing) [1.67 km]: 18.362 ms
Testing download speed................................................................................
Download: 174.73 Mbit/s
Testing upload speed................................................................................................
Upload: 178.91 Mbit/s
[root@localhost ~]# 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM