Linux下|Linux下 安装ab测试工具以及使用
安装
yum -y install httpd-tools
查看信息:ab -V
# man ab
AB(1)abAB(1)
NAME
ab - Apache HTTP server benchmarking tool
SYNOPSIS
ab[-A auth-username:password ] [ -b windowsize ] [ -B local-address ] [ -c concurrency ] [ -C cookie-name=value ] [ -d ] [ -e csv-file ] [ -f protocol ] [ -g gnuplot-file ] [ -h ] [ -H custom-header ] [ -i ] [ -k ] [ -n requests ] [ -p POST-file ] [ -P
proxy-auth-username:password ] [ -q ] [ -r ] [ -s timeout ] [ -S ] [ -t timelimit ] [ -T content-type ] [ -u PUT-file ] [ -v verbosity] [ -V ] [ -w ] [ -x
-attributes ] [-Zcipher‐ suite ] [http[s]://]hostname[:port]/path SUMMARY abis a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. OPTIONS -A auth-username:password Supply BASIC Authentication credentials to the server. The username and password are separated by a single : and sent on the wire base64 encoded. The string is sent regardless of whether the server needs it (i.e.,hassentan401authentication needed). 【Linux下|Linux下 安装ab测试工具以及使用】-b windowsize Manual page ab(1) line 1 (press h for help or q to quit) 推荐阅读
|