CentOS6.9安装web网站压力测试webbench实战

第一个里程碑:下载软件包

[root@oldboy43-01/server/tools]#wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
--2018-03-08 12:02:09--  http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
Resolving blog.s135.com... 47.89.12.190
Connecting to blog.s135.com|47.89.12.190|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
--2018-03-08 12:02:11--  (try: 2)  http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
Connecting to blog.s135.com|47.89.12.190|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://zyan.cc/soft/linux/webbench/webbench-1.5.tar.gz [following]
--2018-03-08 12:02:11--  http://zyan.cc/soft/linux/webbench/webbench-1.5.tar.gz
Resolving zyan.cc... 47.89.12.190
Reusing existing connection to blog.s135.com:80.

HTTP request sent, awaiting response... 200 OK

第二个里程碑:下载所需依赖关系包,创建所需目录

[root@oldboy43-01/server/tools/webbench-1.5]#yum install ctags -y

[root@oldboy43-01/server/tools/webbench-1.5]#mkdir /usr/local/man

第三个里程碑:解压压缩包,编译安装

[root@oldboy43-01/server/tools/webbench-1.5]#tar xf webbench-1.5.tar.gz

[root@oldboy43-01/server/tools/webbench-1.5]#make

cc -Wall -ggdb -W -O   -c -o webbench.o webbench.c
webbench.c: In function ‘alarm_handler’:
webbench.c:77: warning: unused parameter ‘signal’
cc -Wall -ggdb -W -O  -o webbench webbench.o  
ctags *.c
[root@oldboy43-01/server/tools/webbench-1.5]#make install
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

第四个里程碑:对www.etiantian.org开始压力测试---并发由小到大

[root@oldboy43-01/server/tools/webbench-1.5]#webbench -c 600 -t 30 http://www.etiantian.org/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.etiantian.org/
600 clients, running 30 sec.
Speed=25742 pages/min, 161671 bytes/sec.
Requests: 12781 susceed, 90 failed

-c 并发数  -t 测试时间  

压测网站cpu负载情况显示




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值