Install AB (Apache Benchmark) Tool on CentOS

Issue: cPanel based server running CentOS 7.3 that is already running Apache (httpd), need to install ab, so as to benchmark other servers.

Solution: Install on the command line:

Edit yum:

nano /etc/yum.conf

Remove entry referencing: httpd*

Then install ab:

yum install httpd-tools

Add back the httpd* reference to yum (that was removed above).

Now test a benchmark of some OTHER server, example:

ab -c 5 -n 1000 https://www.domain-name.com/

The above may take quite some time as it has to cycle through 1000 – So… maybe use a lower number just to test that ab is functioning.

1 thought on “Install AB (Apache Benchmark) Tool on CentOS”

Leave a comment

BlogLogistics