通过Ookla Speedtest命令行测速 mac+ubuntu
date
Jan 31, 2022
slug
tip-ookla-speedtest-cli
status
Published
summary
小技巧
tags
tip
type
Post
Soltion@Ubuntu
curl -fsSL git.io/speedtest-cli.sh | sudo bash && speedtest
# 或者
# ubuntu
wget -O /usr/share/keyrings/speedtest.asc https://packagecloud.io/ookla/speedtest-cli/gpgkey
echo "deb [signed-by=/usr/share/keyrings/speedtest.asc] https://packagecloud.io/ookla/speedtest-cli/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/speedtest.list
apt update -y && apt install speedtest -y
# 查看附近的测速节点列表:
speedtest -L
# 指定某个测速节点:
speedtest -s 测速节点 ID
ID Name Location Country
==============================================================================
24447 China Unicom 5G ShangHai China
3633 China Telecom Shanghai China
26850 China Mobile 5G Wuxi China
30852 Duke Kunshan University Kunshan China
5396 China Telecom JiangSu 5G Suzhou China
45170 China Unicom Wu Xi China
36663 China Telecom JiangSu 5G Zhenjiang China
17320 China Mobile JiangSu 5G ZhenJiang China
5317 江苏电信5G Yangzhou China
13704 China Unicom Nanjing China
17587 Wiline Networks San Francisco, CA United States
8228 Race Communications San Francisco, CA United States
1783 Comcast San Francisco, CA United States
安装到了 /usr/local/bin/speedtest