运维|ubuntu和centos7安装iperf3

Ubuntu安装iperf3

# Iperf的安装要换成阿里的源 sudo add-apt-repository "ppa:patrickdk/general-lucid" sudo apt-get update sudo apt-get install iperf3

Centos7安装iperf3
# 更新系统&安装wget yum -y update yum -y install wget# 安装Iperf yum -y install gcc make cd /tmp wget https://iperf.fr/download/source/iperf-3.1.3-source.tar.gz tar zxvf iperf-3.1.3-source.tar.gz cd iperf-3.1.3 ./configure make make install

【运维|ubuntu和centos7安装iperf3】安装之后需要设置开机自动启动
chmod +x /etc/rc.d/rc.local vi /etc/rc.d/rc.local 添加/usr/local/bin/iperf3 -s -D

防火墙:打开端口:默认端口5201,或者启动指定端口
firewall-cmd --zone=public --add-port=5201/tcp --permanent firewall-cmd --reload # 重启系统 reboot

    推荐阅读