码迷,mamicode.com
首页 > 系统相关 > 详细

linux网速测试

时间:2019-03-04 17:12:42      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:roo   客户   lock   china   server   cli   clone   test   界面   

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 ~]# 

linux网速测试

标签:roo   客户   lock   china   server   cli   clone   test   界面   

原文地址:https://www.cnblogs.com/haoduoyou/p/10471626.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!