1.下载brew 在macbook上执行下面命令,安装brew 2.安装iperf brew install iperf3 3.基本命令参考: https://iperf.fr/iperf-doc.php#3doc