iperf的github

https://github.com/esnet/iperf/releases

解压

sudo tar -zvxf iperf-3.6.tar.gz -C /usr/local

进入目录,编译

sudo ./configure

安装

sudo make
sudo make install

报错

iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory

手动执行

sudo /sbin/ldconfig

可以访问了

# iperf3 -v
iperf 3.6 (cJSON 1.5.2)
Linux JQ-Mac 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64
Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing, authentication

开启服务

# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

确保服务端开启5201端口

vim /etc/sysconfig/iptables
/etc/init.d/iptables restart

测试访问

# iperf3 -c 192.168.1.200
Connecting to host 192.168.1.200, port 5201
[ 5] local 192.168.1.228 port 58092 connected to 192.168.1.200 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 11.3 MBytes 94.5 Mbits/sec 0 24.0 KBytes
[ 5] 1.00-2.00 sec 11.2 MBytes 94.1 Mbits/sec 0 26.9 KBytes
[ 5] 2.00-3.00 sec 11.2 MBytes 94.1 Mbits/sec 0 28.3 KBytes
[ 5] 3.00-4.00 sec 11.2 MBytes 94.2 Mbits/sec 0 43.8 KBytes
[ 5] 4.00-5.00 sec 11.2 MBytes 94.2 Mbits/sec 0 43.8 KBytes
[ 5] 5.00-6.00 sec 11.2 MBytes 93.7 Mbits/sec 0 43.8 KBytes
[ 5] 6.00-7.00 sec 11.1 MBytes 93.3 Mbits/sec 0 43.8 KBytes
[ 5] 7.00-8.00 sec 11.3 MBytes 94.4 Mbits/sec 0 66.5 KBytes
[ 5] 8.00-9.00 sec 11.3 MBytes 94.8 Mbits/sec 0 100 KBytes
[ 5] 9.00-10.00 sec 11.1 MBytes 93.2 Mbits/sec 0 100 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 112 MBytes 94.0 Mbits/sec 0 sender
[ 5] 0.00-10.04 sec 112 MBytes 93.6 Mbits/sec receiver iperf Done.

比较操蛋的是,很少有服务器开启5201端口。

最新文章

  1. T-SQL学习记录
  2. Linux零起点之进程管理----c语言编程
  3. BZOJ 1858 线段树
  4. 【原创】js中利用cookie实现记住密码功能
  5. hdu 1212 Big Number
  6. While reading xxx.png pngcrush caught libpng error: Not a PNG file..
  7. LeetCode: MergekSortedLists
  8. MyEclipse汉化后问题
  9. DDUI For Delphi Seattle Directui界面组件
  10. APUE 3 -- 信号(signal)<I> :概念
  11. 搭建SS服务器
  12. sql小知识点
  13. A Graph Partitioning Game Theoretical Approach for the VNF Service Chaining Problem
  14. maven的介绍及如何获取jar包
  15. Nagios故障 CHECK_NRPE: Socket timeout after 10 seconds.
  16. 使用viewport中的vm来适配移动端页面
  17. 微信小程序开发需要注意的30个坑
  18. 微信小程序 canvas 绘图问题总结
  19. springboot+rabbitmq整合示例程
  20. Pandas 常见的基本方法

热门文章

  1. 2D到3D视频转换 三维重建
  2. golang-笔记1
  3. YII框架的行为
  4. Node.js之文件下载
  5. arcpy 重分类
  6. PCA python 实现
  7. np.vstack()和np.hstack()
  8. Android 调用WCF实例详解
  9. 021 CSS高级特性
  10. centos7.6下编译安装zabbix4.0.10长期支持版