【问题标题】:What package includes AB the Apache Server Benchmarking Tool in Ubuntu [closed]什么包包括 AB Ubuntu 中的 Apache 服务器基准测试工具 [关闭]
【发布时间】:2010-09-09 03:48:18
【问题描述】:

我正在尝试为 Ubuntu 找到 ab - Apache HTTP server benchmarking tool,我希望有一个可以为它安装的软件包。我决定需要对我的应用程序进行一些简单的负载测试。

【问题讨论】:

    标签: linux apache ubuntu


    【解决方案1】:
    % sudo apt-get install apache2-utils

    Ubuntu 中的 command-not-found 软件包提供了一些巧妙的功能,如果您键入无法解析为可执行文件(或 bash 函数或其他任何内容)的命令,它将查询您的 apt 源并查找包含您尝试执行的二进制文件。所以,在这种情况下,我在命令提示符下输入了ab

    % ab The program 'ab' is currently not installed. You can install it by typing: sudo apt-get install apache2-utils bash: ab: command not found

    【讨论】:

    【解决方案2】:

    另一种搜索丢失文件的方法,例如如果你使用 zsh,想要禁用 command-not-found(当你输错命令名时会减慢速度),或者正在寻找一个不是可执行文件的文件:

    $ sudo aptitude install apt-file
    $ sudo apt-file update
    $ apt-file search bin/ab
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-22
      • 1970-01-01
      • 2011-06-19
      • 1970-01-01
      • 2011-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多