我试图安装Apache基准使用是否有一种方法来安装Apache Bench(ab)没有在我的yumdownloader httpd
上安装Apache解决scheme,但是当我运行yumdownloader httpd
,我得到错误:
root@local [~/httpd]# yumdownloader httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: yum.phx.singlehop.com * elrepo: repos.lax-noc.com * extras: centos.tcpdiag.net * updates: mirror.stanford.edu No Match for argument httpd Nothing to download
它是什么? 我该如何修复它?
编辑1:我尝试使用迈克尔汉普顿的方式,但我得到这个错误:
root@local [~]# yum provides /usr/bin/ab Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: yum.phx.singlehop.com * elrepo: repos.lax-noc.com * extras: centos.tcpdiag.net * updates: mirror.stanford.edu No Matches found root@local [~]# yum install httpd-tools Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: yum.phx.singlehop.com * elrepo: repos.lax-noc.com * extras: centos.tcpdiag.net * updates: mirror.stanford.edu Setting up Install Process No package httpd-tools available. Error: Nothing to do
你可以使用yum provides
软件包来find你想要的程序包:
yum provides /usr/bin/ab
然后你会看到ab
在httpd-tools
包中。
现在你可以安装它:
yum install httpd-tools