htpasswd:basic认证基于文件实现时用于账号密码的创建工具;
apachectl:httpd自带的服务控制脚本;”apachectl {start|stop}”,启动或停止httpd服务;
apxs:由httpd-devel程序包提供,用于扩展httpd使用第三方模块的工具;
rotatelogs:日志滚动工具;
ab:apache自带的压测工具;
tcpcopy;
suexec:访问某些有特殊权限配置的资源时,临时切换至指定用户身份进行资源的访问;
httpd的压力测试工具:
ab,webbench,http_load,seige;
jmeter,loadrunner;
ab命令格式:ab [options] URL
ab常用选项:
-n:总请求数;
-c:模拟的并行数;
-k:持久连接;
~]# ab -n 50 -c 50 -k http://lucifer.kouyuushinn.cn/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking lucifer.kouyuushinn.cn (be patient).....done Server Software: nginx/1.12.2 Server Hostname: lucifer.kouyuushinn.cn Server Port: 80 Document Path: / Document Length: 49119 bytes Concurrency Level: 50 Time taken for tests: 20.891 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Total transferred: 4937000 bytes HTML transferred: 4911900 bytes Requests per second: 4.79 [#/sec] (mean) Time per request: 10445.308 [ms] (mean) Time per request: 208.906 [ms] (mean, across all concurrent requests) Transfer rate: 230.79 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 8 44 39.4 15 103 Processing: 994 8793 3232.9 9811 14396 Waiting: 318 4842 2145.4 4422 9131 Total: 1023 8838 3212.7 9824 14406 Percentage of the requests served within a certain time (ms) 50% 9824 66% 10296 75% 11586 80% 11734 90% 12741 95% 13368 98% 13969 99% 14406 100% 14406 (longest request)