Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 如何在CentOS上安装Apache Benchmark?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我尝试在我的centos上使用 Is there a way to install Apache Bench (ab) without installing apache解决方案安装Apache Benchmark但是当我运行yumdownloader httpd时,我收到错误: root@local [~/httpd]# yumdownloader httpd Loaded plugins: f
我尝试在我的centos上使用 Is there a way to install Apache Bench (ab) without installing apache解决方案安装Apache Benchmark但是当我运行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提供的发现包含您想要的程序的包:
yum provides /usr/bin/ab

然后你会看到ab在httpd-tools包中.

现在你可以安装它:

yum install httpd-tools

大佬总结

以上是大佬教程为你收集整理的linux – 如何在CentOS上安装Apache Benchmark?全部内容,希望文章能够帮你解决linux – 如何在CentOS上安装Apache Benchmark?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: