Window下Apahce指令

来源:互联网 发布:spss mac使用教程 编辑:程序博客网 时间:2024/06/07 01:35

在CMD下Apache指令:

启动:httpd.exe -k start

停止:httpd.exe -k stop   或者httpd.exe -k shutdown

重启:httpd.exe -k restart

移除:httpd.exe -k uninstall -n  "Apache服务名字"

测试配置:httpd.exe -n  “Apache服务名字” -t

压测:ab -n 800 -c 800 http://localhost     (-n发出800个请求,-c模拟800次并发)

   ab -t 60 -c 100 http://localhost(一分钟内并发100次)