下载源码,进入目录后采用默认配置
.config
make
make install
启动服务即可。
chkconfig ||-add httpd 检查文件是否生成
service httpd start
测apache benchmark
创建一个简单的网页:
Webserver testThis is a webserver test page.
ab -n 1000 -c 5
Where,
- -n 1000: ab will send 1000 number of requests to server 202.54.200.1 in order to perform for the benchmarking session
- -c 5 : 5 is concurrency number i.e. ab will send 5 number of multiple requests to perform at a time to server 202.54.200.1
Repeat above command 3-5 times and save the best reading.
阅读(1374) | 评论(0) | 转发(0) |