Linux服务器网速测试

https://github.com/sivel/speedtest-cli

单文件版

# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
# chmod +x speedtest-cli

# ./speedtest-cli
Retrieving speedtest.net configuration...
Testing from Hangzhou Alibaba Advertising Co.,Ltd. (123.57.244.62)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by shanxi CMCC 5G (Taiyuan) [359.85 km]: 22.227 ms
Testing download speed................................................................................
Download: 54.16 Mbit/s
Testing upload speed................................................................................................
Upload: 1.05 Mbit/s

# ./speedtest-cli --help

# vim ~/.bashrc
alias speedtest="/root/speedtest-cli --bytes"

# source ~/.bashrc

# speedtest
Retrieving speedtest.net configuration...
Testing from Hangzhou Alibaba Advertising Co.,Ltd. (123.57.244.62)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Henan CMCC 5G (Zhengzhou) [9.69 km]: 22.435 ms
Testing download speed................................................................................
Download: 9.61 Mbyte/s
Testing upload speed................................................................................................
Upload: 0.15 Mbyte/s

安装版

# git clone https://github.com/sivel/speedtest-cli.git
# cd speedtest-cli/
# python setup.py install
# speedtest --help
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容