当前位置: 首页 > news >正文

服务器主机测试网络

 测试命令 speedtest-cli

sudo yum install python-pip
pip install speedtest-cli
# 默认连接国外被拒绝,用阿里云
pip install -i https://mirrors.aliyun.com/pypi/web/simple  --trusted-host mirrors.aliyun.com speedtest-cli
Collecting speedtest-cliDownloading http://mirrors.aliyun.com/pypi/web/packages/9f/39/65259b7054368b370d3183762484fa2c779ddc41633894d895f9d1720f45/speedtest_cli-2.1.3-py2.py3-none-any.whl
Installing collected packages: speedtest-cli
Successfully installed speedtest-cli-2.1.3
# 测试命令speedtest-cli --simple# 测试输出结果
Ping: 7.843 ms
Download: 748.19 Mbit/s
Upload: 426.23 Mbit/s

 测试命令 iperf3

# 服务端和客户端安装 
yum -y install iperf3
# 服务端 操作命令启动  
]# iperf3 -s # 示例命令  服务端 10.10.78.5
[root@localhost admin]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------# 客户端 操作命令 启动  
]# iperf3 -c (ip地址)# 验证命令
]# iperf3 -c 10.10.78.5
Connecting to host 10.10.78.5, port 5201
[  4] local 10.10.110.202 port 55518 connected to 10.10.78.5 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   114 MBytes   958 Mbits/sec   57    107 KBytes       
[  4]   1.00-2.00   sec   111 MBytes   933 Mbits/sec   22    205 KBytes       
[  4]   2.00-3.00   sec   110 MBytes   923 Mbits/sec   22    163 KBytes       
[  4]   3.00-4.00   sec   111 MBytes   933 Mbits/sec   16    178 KBytes       
[  4]   4.00-5.00   sec   111 MBytes   933 Mbits/sec   20    151 KBytes       
[  4]   5.00-6.00   sec   111 MBytes   933 Mbits/sec   14    133 KBytes       
[  4]   6.00-7.00   sec   110 MBytes   923 Mbits/sec   12    339 KBytes       
[  4]   7.00-8.00   sec   111 MBytes   933 Mbits/sec   25    187 KBytes       
[  4]   8.00-9.00   sec   111 MBytes   933 Mbits/sec   16    182 KBytes       
[  4]   9.00-10.00  sec   111 MBytes   933 Mbits/sec   10    153 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.09 GBytes   934 Mbits/sec  214             sender
[  4]   0.00-10.00  sec  1.08 GBytes   931 Mbits/sec                  receiveriperf Done.

http://www.lryc.cn/news/512719.html

相关文章:

  • 【JMeter详解】
  • Maven Wrapper 报错“未找到有效的 Maven 安装”
  • 如何通过 360 驱动大师检查自己电脑上的显卡信息
  • C++并发:线程管控
  • C++ 设计模式:策略模式(Strategy Pattern)
  • SpringBoot(Ⅱ-2)——,SpringBoot版本控制,自动装配原理补充(源码),自动导包原理补充(源码),run方法
  • 爬虫的工作原理
  • 你了解DNS吗?
  • 利用JavaScript实现顺序九宫格抽奖
  • 音视频入门知识(四):封装篇
  • 在基于IMX6ULL的Linux嵌入式编程中,与内存相关的堆(Heap)和栈(Stack)有什么区别?Linux 系统中堆和栈的内存布局是怎么样的?
  • Sealos Devbox 基础教程:使用 Cursor 从零开发一个 One API 替代品
  • pthread.h互斥锁与原子操作
  • 网络基础入门到深入(3):网络协议-HTTP/S
  • Git的.gitignore文件详解与常见用法
  • UniApp 组件的深度运用
  • k8s部署nginx+sshd实现文件上传下载
  • Spring-Mybatis 2.0
  • Linux 的历史与发展:从诞生到未来
  • SQL Server实现将分组的其他字段数据拼接成一条数据
  • 学习笔记 --C#基础其他知识点(同步和异步)
  • 一维、线性卡尔曼滤波的例程(MATLAB)
  • 极品飞车6的游戏手柄设置
  • FreeRTOS Lwip Socket APi TCP Server 1对多
  • 逆袭之路(11)——python网络爬虫:原理、应用、风险与应对策略
  • KOI技术-事件驱动编程(Sping后端)
  • LVS 负载均衡原理 | 配置示例
  • Hive分区再分桶表
  • 从 Coding (Jenkinsfile) 到 Docker:全流程自动化部署 Spring Boot 实战指南(简化篇)
  • Linux官文转载-- Linux 内核代码风格