webbench编译安装包备份链接: http://pan.baidu.com/s/1mg26wT6 密码: 7sax
步骤:
wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz
tar -zxvf webbench-1.5.tar.gz
cd webbench-1.5
make
出现错误:
[root@localhost webbench-1.5]# make && make install
cc -Wall -ggdb -W -O -c -o webbench.o webbench.c
webbench.c: In function ‘alarm_handler’:
webbench.c:77: 警告:未使用的参数 ‘signal’
cc -Wall -ggdb -W -O -o webbench webbench.o
ctags *.c
/bin/sh: ctags: command not found
make: [tags] 错误 127 (忽略)
安装ctags
yum install ctags
再次 make&make install
[root@localhost webbench-1.5]# mkdir /usr/local/man
[root@localhost 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
测试
webbench -c 500 -t 30 http://192.168.80.155:8080/
返回结果:
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.80.155:8080/
500 clients, running 30 sec.
Speed=64632 pages/min, 130348 bytes/sec.
Requests: 7097 susceed, 25219 failed.