root@server \~\]# speedtest-cli --list Retrieving speedtest.net configuration... 36646) China Unicom HeNan 5G (Zhengzhou, China) \[434.03 km
Lanzhou,China Mobile,Gansu (Lanzhou, China) [505.69 km]
China Broadcasting Network Group Sichuan (Chengdu, China) [606.95 km]
China Telecom Wuhan Branch (Wuhan, China) [648.22 km]
湖南联通5G (Changsha, China) [776.52 km]
Viettel Network (Bac Ninh, Vietnam) [1481.67 km]
ZHOST.VN (Ha Noi, Vietnam) [1502.17 km]
VIETPN CO, LTD (Ha Noi, Viet Nam) [1502.17 km]
GEENET COMMUNICATION (Dibrugarh, India) [1533.77 km]
Lao Telecom (Muang Xai, Laos) [1655.95 km]
root@server \~\]# speedtest-cli --list \| grep China # 过滤中国地区的ISP 36646) China Unicom HeNan 5G (Zhengzhou, China) \[434.03 km
Lanzhou,China Mobile,Gansu (Lanzhou, China) [505.69 km]
China Broadcasting Network Group Sichuan (Chengdu, China) [606.95 km]
China Telecom Wuhan Branch (Wuhan, China) [648.22 km]
湖南联通5G (Changsha, China) [776.52 km]
36646) China Unicom HeNan 5G (Zhengzhou, China) [434.03 km] 解释:
36646: 服务器id
China Unicom HeNan 5G:网络ISP,中国联通(河南)
Zhengzhou, China:服务器所在地址
434.03 km:两台服务器地理位置之间距离
```bash
分享,可以在网站查看生成的图片
root@server \~\]# speedtest-cli --server 36646 --share # 需要更换服务器id
Retrieving speedtest.net configuration...
Testing from China Telecom (113.132.176.202)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by China Unicom HeNan 5G (Zhengzhou) \[434.03 km\]: 30.326 ms
Testing download speed................................................................................
Download: 155.98 Mbit/s
Testing upload speed......................................................................................................
Upload: 85.31 Mbit/s
Share results: http://www.speedtest.net/result/14700390192.png # 图片url
\`\`\`
\
- 设置别名:需要更换id
\`\`\`bash
alias speed='speedtest-cli --server 36646 --simple'
\[root@server \~\]# speed
Ping: 367.255 ms
Download: 194.83 Mbit/s
Upload: 96.23 Mbit/s
\`\`\`