To open the Apache Server installation path (I'm using wampserver), there is a Ab.exe executable program in the bin directory, which is the stress test tool to introduce.
Under the Windows System command line, enter the directory where the Ab.exe program is located and execute the Ab.exe program. Note that double-clicking directly does not work correctly. <喎?http: www.2cto.com="" kf="" ware="" vc="" "="" target="_blank" class="keylink"> vcd4kpha+icagicagicbkoii72lo1l734yotexcwppgjypgo8l3a+cjxwpia8aw1nihnyyz0= "/program/uploadpic/2014-6/ 201461743056837.jpg "alt=" >
CD Wamp\bin\apache\apache2.4.4\bin (carriage Enter/Enter bin directory)
AB (carriage return/)
If you see some of the following help information on the successful launch AB
Start AB stress test.
Ab-n 5000-c http://localhost/test.php
The example above indicates a total of 5,000 accesses to the http://localhost/test.php script, 200 concurrent (simulating 200 simultaneous user accesses).
Introduction to AB Common parameters:
-N: Total number of request executions, default is 1;
-C: Concurrent number, default is 1;
-T: Total time of the test, in seconds, by default 50000s
Data files when-p:post
-W: Output results in HTML table format