Chinaunix首页 | 论坛 | 博客
  • 博客访问: 197453
  • 博文数量: 77
  • 博客积分: 1749
  • 博客等级: 上尉
  • 技术积分: 810
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-28 18:27
文章分类
文章存档

2012年(28)

2011年(49)

分类: LINUX

2012-01-05 09:24:32

下载源码,进入目录后采用默认配置
.config
make
make install
启动服务即可。
chkconfig ||-add httpd 检查文件是否生成
service httpd start

测apache benchmark
创建一个简单的网页:

Webserver test
This 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.


 
阅读(1341) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~