在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次)