1、安装依赖
yum -y install apr-utilyum -y install yum-utils
2、创建临时文件夹
cd /usr/localmkdir httpdcd httpd
3.下载安装包
yumdownloader httpd-tools*rpm2cpio httpd-tools-*.rpm |cpio -idmv
4.移动ab文件夹到系统bin目录
mv usr/bin/ab /usr/bin/ab
5.删除创建的临时文件夹
cd ..rm -rf httpd