1./opt下面解压:httpd-2.2.29.tar.gz
2.根目录/下:mkdir -p /usr/local/web/apache
3./opt下进入httpd-2.2.29文件夹:cd httpd-2.2.29
4.安装:
(1)./configure --prefix=/usr/local/web/apache --enable-shared=max --enable-module=rewirte --enable-module=so
(2)make:预编译
(1)./configure --prefix=/usr/local/web/apache --enable-shared=max --enable-module=rewirte --enable-module=so
(2)make:预编译
(3)make install:预编译以后安装
5.ab压力测试开始:
(1)进入/usr/local/web/apache/bin目录下(前提:Tomcat需要开启)
(2)执行命令:ab -n1000 -c100 http://localhost:8080/
说明:我们可以模拟100个并发用户,对一个页面发送1000个请求 ,其中-n代表请求数,-c代表并发数。
(3)测试报告说明