linux中利用speedtest-cli测网速

本小妞迷上赌 提交于 2019-12-01 23:26:51
[root@elegant-snap-3 you-get]# wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
--2019-10-22 05:15:00--  https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.196.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.196.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65018 (63K) [text/plain]
Saving to: ‘speedtest.py’

100%[=================================================================================================================================>] 65,018      --.-K/s   in 0.003s  

2019-10-22 05:15:00 (22.9 MB/s) - ‘speedtest.py’ saved [65018/65018]

[root@elegant-snap-3 you-get]# chmod +x ./speedtest.py 
[root@elegant-snap-3 you-get]# ./speedtest.py 
Retrieving speedtest.net configuration...
Testing from IT7 Networks (176.122.184.179)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Bel Air Internet LLC (Los Angeles, CA) [0.90 km]: 3.238 ms
Testing download speed................................................................................
Download: 833.87 Mbit/s
Testing upload speed................................................................................................
Upload: 793.63 Mbit/s
[root@elegant-snap-3 you-get]# 

就这样,我的国外vps速度很快,然而在国内的腾讯云vps上下行速度慢10倍,上行速度慢百倍,国内的vps硬盘慢网速也慢而且还贵,不是地理位置近些延迟低些真的毫无优点。。

image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!