三种安装方式
1、yum安装
yum install iperf3
2、rpm离线安装
https://iperf.fr/iperf-download.php安装包下载连接
rpm -ivh 安装包名称
3、源码安装
https://github.com/esnet/iperf下载源码
./configure
make
make install
最后可能会报错iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory
执行以下命令即可解决
export LD_LIBRARY_PATH=/usr/local/lib/