Linux——测网速例子,在网站查看生成的图片

[root@server ~]# speedtest-cli --list

Retrieving speedtest.net configuration...

  1. China Unicom HeNan 5G (Zhengzhou, China) [434.03 km]

  2. Lanzhou,China Mobile,Gansu (Lanzhou, China) [505.69 km]

  3. China Broadcasting Network Group Sichuan (Chengdu, China) [606.95 km]

  4. China Telecom Wuhan Branch (Wuhan, China) [648.22 km]

  5. 湖南联通5G (Changsha, China) [776.52 km]

  6. Viettel Network (Bac Ninh, Vietnam) [1481.67 km]

  7. ZHOST.VN (Ha Noi, Vietnam) [1502.17 km]

  8. VIETPN CO, LTD (Ha Noi, Viet Nam) [1502.17 km]

  9. GEENET COMMUNICATION (Dibrugarh, India) [1533.77 km]

  10. Lao Telecom (Muang Xai, Laos) [1655.95 km]

[root@server ~]# speedtest-cli --list | grep China # 过滤中国地区的ISP

  1. China Unicom HeNan 5G (Zhengzhou, China) [434.03 km]

  2. Lanzhou,China Mobile,Gansu (Lanzhou, China) [505.69 km]

  3. China Broadcasting Network Group Sichuan (Chengdu, China) [606.95 km]

  4. China Telecom Wuhan Branch (Wuhan, China) [648.22 km]

  5. 湖南联通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

```

<img src="https://foxandy007.oss-cn-chengdu.aliyuncs.com/typora_img/image-20230506102226558.png" alt="image-20230506102226558" style="zoom:67%;" />

  • 设置别名:需要更换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

```

相关推荐
gywl17 分钟前
openEuler VM虚拟机操作(期末考试)
linux·服务器·网络·windows·http·centos
青木沐17 分钟前
Jenkins介绍
运维·jenkins
WTT00111 小时前
2024楚慧杯WP
大数据·运维·网络·安全·web安全·ctf
苹果醋31 小时前
React源码02 - 基础知识 React API 一览
java·运维·spring boot·mysql·nginx
了一li1 小时前
Qt中的QProcess与Boost.Interprocess:实现多进程编程
服务器·数据库·qt
杨德杰1 小时前
QT网络(一):主机信息查询
网络·qt
日记跟新中2 小时前
Ubuntu20.04 修改root密码
linux·运维·服务器
唐小旭2 小时前
服务器建立-错误:pyenv环境建立后python版本不对
运维·服务器·python
码农君莫笑2 小时前
信管通低代码信息管理系统应用平台
linux·数据库·windows·低代码·c#·.net·visual studio