How to run Apache benchmark load-test in windows?

和自甴很熟 提交于 2019-12-09 09:37:43

问题


what's the procedure I should follow to run a simple test on a domain www.example.com?I'm on windows environment and have installed WAMP server 2.1.

I actually know wich command I should use (Ex. ab -n 1 http://www.example.com/) but dont know where I should type it.

thanks for your patience


回答1:


I don't know the path WampServer is installed to, so I'll just show you how I do it under WampDeveloper (which is what I use).

Run cmd.exe.

Inside...

C:
cd \WampDeveloper\Components\Apache\bin
ab -n 1 http://www.example.com/

To answer your question, you type it in the command line changed to the bin folder of your Apache folder since this is where ab.exe exists. If this folder location is in the system path, you can also just type it in anywhere (without changing paths in cmd.exe).

This 1st line changes the drive letter. Then second the path (aka working directory). The third runs ab.exe.




回答2:


I do agree, PATH ENVIRONMENT setup manually

C:/YOUR_INSTALLATION_APACHE2/bin

Path to environment on control panel system settings.



来源:https://stackoverflow.com/questions/6299948/how-to-run-apache-benchmark-load-test-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!