什么软件包包括 AB 在 Ubuntu 中的 Apache 服务器基准测试工具

我正在为 Ubuntu 寻找 Apache HTTP Server 基准测试工具,我希望有一个软件包可以为它安装。我决定对我的应用程序进行一些简单的负载测试。

37648 次浏览
% sudo apt-get install apache2-utils

The command-not-found package in Ubuntu provides some slick functionality where if you type a command that can't be resolved to an executable (or bash function or whatever) it will query your apt sources and find a package that contains the binary you tried to execute. So, in this case, I typed ab at the command prompt:


% 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

Another way to search for missing files, e.g. if you use zsh, want to disable command-not-found (slows things down when you misstype commandnames), or are looking for a file that is not an executable:

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