linux服务器速度测试,在Linux下使用speedtest的服务测试服务器的上下行速度

1.在Linux下安装speedtest-cliwget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py

chmod a+rx speedtest_cli.py

mv speedtest_cli.py /usr/local/bin/speedtest-cli

chown root:root /usr/local/bin/speedtest-cli

2.使用speedtest-cli测速[root@i3190 ~]# speedtest-cli

Retrieving speedtest.net configuration...

Retrieving speedtest.net server list...

Testing from xxx, LLC (x.x.x.x)...

Selecting best server based on latency...

Hosted by Race Communications (Mojave, CA) [123.60 km]: 9.406 ms

Testing download speed........................................

Download: 437.79 Mbits/s

Testing upload speed..................................................

Upload: 89.19 Mbits/s

使用--share参数可以生成一张测速图片[root@i3190 ~]# speedtest-cli --share

Retrieving speedtest.net configuration...

Retrieving speedtest.net server list...

Testing from xxx, LLC (x.x.x.x)...

Selecting best server based on latency...

Hosted by Race Communications (Mojave, CA) [123.60 km]: 9.675 ms

Testing download speed........................................

Download: 532.95 Mbits/s

Testing upload speed..................................................

Upload: 82.69 Mbits/s

Share results: http://www.speedtest.net/result/3847601278.png

可以使用--list参数查看可选的speedtet 的测速服务器speedtest-cli --list |more

4627eabc89604e43479c4f0e6dac8840.png

可以用--server参数使用指定的服务器测速,后面接的是speedtest测速服务器的id[root@i3190 ~]# speedtest-cli --server 935

Retrieving speedtest.net configuration...

Retrieving speedtest.net server list...

Testing from Versaweb, LLC (208.66.77.146)...

Hosted by Speedtest.net (Washington, DC) [3352.55 km]: 79.18 ms

Testing download speed........................................

Download: 29.91 Mbits/s

Testing upload speed..................................................

Upload: 21.06 Mbits/s

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值