has been on the internet to find a lot of installation Apache AB Test tutorial, many are very miscellaneous, not clear, the vast Baidu article, finally found this article, very useful, very good, simple and clear, thanks to share this article of the Great God. I have also made a backup!
The way of the domestic website is more old, not good.
The following is a quick way.
Yum Install Httpd-tools
To see if AB is successfully installed, you can switch to the above directory and use the AB–V command to detect. As follows:
Ab-v
If the AB installation succeeds, the AB–V command will show the version of the AB, as shown.
Ab:wrong Number of arguments
Usage:ab [Options] [http[s]://]hostname[:p Ort]/path
Options are:
-N requests number of requests to perform
-c concurrency number of multiple requests to make
-T TimeLimit Seconds to Max. Wait for responses
-B windowsize Size of TCP send/receive buffer, in bytes
-P postfile File containing data to POST. Remember also to Set-t
-U putfile File containing data to PUT. Remember also to Set-t
-T Content-type content-type header for POSTing, eg.
' Application/x-www-form-urlencoded '
Default is ' Text/plain '
-V verbosity how much troubleshooting info to print
-W Print out results in HTML tables
-I use HEAD instead of GET
-X attributes String to insert as table attributes
-Y attributes String to insert as TR attributes
-Z attributes String to insert as TD or TH attributes
-C attribute Add cookie, eg. ' Apache=1234. (repeatable)
-H attribute Add arbitrary header line, eg. ' Accept-encoding:gzip '
Inserted after all normal header lines. (repeatable)
-A attribute Add Basic WWW authentication, the attributes
is a colon separated username and password.
-P attribute Add Basic Proxy authentication, the attributes
is a colon separated username and password.
-X Proxy:port ProxyServer and port number to use
-V Print version number and exit
-K Use HTTP KeepAlive feature
-D do not show percentiles served table.
-S do not show confidence estimators and warnings.
-G filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-R Don ' t exit on socket receive errors.
-H Display Usage information (this message)
-Z ciphersuite Specify SSL/TLS cipher suite (see OpenSSL ciphers)
-F Protocol Specify SSL/TLS protocol (SSL2, SSL3, TLS1, or all)
Apache AB Linux Server Installation