English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article instance describes the method of installing apachebench separately under CentOS environment. Shared for everyone's reference, as follows:
These two days are testing PHP performance optimization methods.
To observe the effect of stress testing, ApacheBench was chosen as the stress testing tool. It is actually what everyone usually calls ab.
But this tool is built-in when installing the Apache web server. Now my server is running nginx. I don't want to install apache just to use this tool. So I install ab tool separately using the following method, and here are the steps recorded.
First install the software package apr required for ab to run-util
yum install apr-util
Then install a yum toolkit to be able to get ab separately.
yum install yum-utils
After the above two are installed, we start to install ab separately, which is actually downloading the apache rpm package, then unpacking it, and then copying out the ab tool.
Downloading the apache rpm package is completed by yumdownloader, and we create a temporary directory to store it before downloading.
mkdir httpd cd httpd yumdownloader httpd
After downloading, we unpack the rpm
rpm2cpio httpd-2.2.3-43.el5.centos.3.i386.rpm | cpio -idmv
Finally, copy the ab we used to the system's/usr/It's okay in the bin directory. Finally, delete the temporary directory and it's all done.
mv usr/bin/ab /usr/bin/ab cd .. rm -rf httpd
Hoping the description in this article will be helpful to everyone in configuring CentOS server.
Declaration: The content of this article is from the network, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, has not been manually edited, and does not assume relevant legal liability. If you find any copyright-infringing content, please send an email to: notice#w3Please report any violations by sending an email to codebox.com (replace # with @ when sending emails), and provide relevant evidence. Once verified, this site will immediately delete the infringing content.