分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 前端开发

ab(Apache Benchmark)测试工具的安装

发布时间:2023-09-06 01:07责任编辑:郭大石关键词:暂无标签

 下载 ab(Apache Benchmark)                                                                                                                  

ab压力测试工具是跟apache的http一起发布的。

Apache HTTP 官网下载:https://www.apache.org/dyn/closer.cgi

可以选择这个链接下载

找到 httpd,点击进入

下载一个比较新的gz包。

这个时候如果你直接开始安装(第一步当然是./configure),可能会报如下错误:

configure: error: APR not found.  Please read the documentation.

那么就需要先安装 Apache Portable Runtime library。

事实上,当你安装 APR OK之后,继续安装 HTTP 的时候还可能会报如下错误:

configure: error: APR-util not found.  Please read the documentation.

那么还需要安装 APR-util 了。

安装 APR(Apache Portable Runtime library)                                                                                       

下载 APR(无法使用 wget,也可以使用其他下载工具直接下载链接)

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz

安装

./configure & make & make install

安装的时候安装到默认的路径 /usr/local(可以 ./configure --help 查看默认路径)

安装好 APR 之后,安装 HTTP 试一下,果然又需要安装 APR-util(Apache Portable Runtime Utility library)

安装 APR-util(Apache Portable Runtime Utility library)                                                                                                                                                                                

下载 APR-util

wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz

安装(需要指定 APR 的build路径,注意,不是安装路径,就是解压 APR包生成的路径)

./configure --with-apr=/data/software_package/apr-1.4.5

然后再 make & make install

APR 与 APR-util 都安装OK,现在可以安装 HTTP 服务了。

安装好之后,ab 测试工具在 HTTPD 的默认安装路径/bin下面。

我的是在 /usr/local/apache2/bin 下面

ab(Apache Benchmark)测试工具的安装

原文地址:http://www.cnblogs.com/wangxiaokun/p/7498892.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved