Iperf3.1编译工具 官网下载源代码: iperf-3.1.tar.bz2
解压文件到目录
$:cd iperf-3.1 $:./configure--host=arm-linux-gnueabihf --prefix=/home/qrobot/ipref3/ $:make $:make install
–host:指定交叉编译工具,一般为arm-linux-gnueabihf,具体要和目标板用的交叉编译工具对应。 –prefix:指定安装目录,编译后的文件会全部放在安装目录中。必须是绝对路径!
Cd ../ipref3 #进入安装目录 arm-linux-gnueabihf-stripbin/iperf3 #去除iperf3镜像调试信息 arm-linux-gnueabihf-striplib/libiperf.so.0.0.0 #去除共享库的调试信息 tarjcf iperf-3.0.3.tar.bz2 bin lib #压缩bin 和lib目录
复制到目标版: 将打包后的iperf-3.0.3.tar.bz2 压缩包通过U盘、FTP或者NFS等方式拷贝到目标板,并分别解压到/bin和/sbin目录。
电脑安装iperf cdiperf-3.1
$./configure
$ make $ sudo make install应用:服务端:iperf3 -s -i 1客户端: iperf3 -c 192.168.0.101 -i 1 -u -t 20 -F /systemlog/2010901101800.txt iperf3 -c 192.168.0.101 -i 1 -w 80K -t 60参考: https://blog.csdn.net/u013625961/article/details/53892821
https://iperf.fr/iperf-download.php#source
https://blog.csdn.net/skdkjzz/article/details/38172621
|