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

rec*_*bot 83 linux apache ubuntu

我正在尝试为Ubuntu 找到ab - Apache HTTP服务器基准测试工具,我希望有一个我可以为它安装的软件包.我决定需要对我的应用程序进行一些简单的负载测试.

Bri*_*ips 126

% sudo apt-get install apache2-utils
Run Code Online (Sandbox Code Playgroud)

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


0x8*_*x89 13

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

$ sudo aptitude install apt-file
$ sudo apt-file update
$ apt-file search bin/ab
Run Code Online (Sandbox Code Playgroud)