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

linux服务器速度测试,在Linux下使用speedtest的服务测试服务器的上下行速度_第1张图片

可以用--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

你可能感兴趣的:(linux服务器速度测试)