linux command under stress test ab

  ab command is integrated into the httpd server, so I want to use the ab command need to install the httpd service. yum -y install httpd

Ab use common commands and options

ab [Options] [http [s]: //] hostname [: port] / path

Common options:

  The total number of requests -n requests in the test session performed, a default

  A request number generated -c concurrency, a default

Case

  A total of 1000 test session request is generated, once generated, stress test

  [root@youxi2 ~]# ab -n 1000 -c 1000 http://192.168.5.102/index.html

Guess you like

Origin www.cnblogs.com/zrh-960906/p/12159203.html