Ubuntu 中的 Apache 服务器基准测试工具 AB 包含在哪个软件包中 [关闭]
题
我正在努力寻找 ab - Apache HTTP 服务器基准测试工具 对于 Ubuntu,我希望有一个可以为其安装的软件包。我决定需要对我的应用程序进行一些简单的负载测试。
解决方案
% 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
其他提示
另一种搜索丢失文件的方法,例如如果您使用 zsh,想要禁用 command-not-found (当您错误输入命令名时会减慢速度),或者正在查找不是可执行文件的文件:
$ sudo aptitude install apt-file
$ sudo apt-file update
$ apt-file search bin/ab
不隶属于 StackOverflow