码迷,mamicode.com
首页 > Web开发 > 详细

Centos安装webbench

时间:2016-08-05 14:02:36      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:

webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。

  1、适用系统:Linux

  2、编译安装:

引用
wget http://blog.zyan.cc/soft/linux/webbench/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install


  3、使用:

引用
webbench -c 500 -t 30 http://127.0.0.1/test.jpg

  参数说明:-c表示并发数,-t表示时间(秒)

  4、测试结果示例:

引用
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://127.0.0.1/test.jpg
500 clients, running 30 sec.

Speed=3230 pages/min, 11614212 bytes/sec.
Requests: 1615 susceed, 0 failed.
 
http://zyan.cc/post/288/
报错1:

出现下列异常:
/usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h
/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h‘: No such file or directory
make: *** [install-headers] Error 1

原来要创建对应的目录,命令如下:
mkdir -p /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/inculde
mkdir /usr/local/jpeg6/man
mkdir /usr/local/jpeg6/man/man1
继续安装原来的方式安装就OK啦

 
 
 
报错2:

make && make install
ctags *.c
/bin/sh: ctags: command not found
make: [tags] Error 127 (ignored)
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install -d /usr/local/share/doc/webbench
install -m 644 debian/copyright /usr/local/share/doc/webbench
install -m 644 debian/changelog /usr/local/share/doc/webbench

解决办法:

yum install ctags

 

 http://blog.csdn.net/xanxng/article/details/7588133

 

Centos安装webbench

标签:

原文地址:http://www.cnblogs.com/softidea/p/5740923.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!