zoukankan      html  css  js  c++  java
  • ab(Apache Benchmark)测试工具的安装

     下载 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 下面

  • 相关阅读:
    React元素渲染
    初识JSX
    微信小程序复制文本到剪切板
    微信小程序报错request:fail url not in domain list
    小程序,通过自定义编译条件,模拟推荐人功能
    积分抵扣逻辑
    微信小程序 switch 样式
    tomcat 配置开启 APR 模式
    tomcat8 传输json 报错 Invalid character found in the request target. The valid characters are defined in RFC 3986
    c++数组初始化误区
  • 原文地址:https://www.cnblogs.com/wangxiaokun/p/7498892.html
Copyright © 2011-2022 走看看