官方网站:http://home.tiscali.cz/~cz210552/webbench.html
下载地址:http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz
1.安装webbench
wget
http://www.honglei.net/file/webbench-1.5.tar.gz
tar zxvf
webbench-1.5.tar.gz
cd webbench-1.5
make && make install
如果出现下面错误提示:
ctags
*.c
/bin/sh: ctags: command not found
解决方法:安装ctags
yum install
ctags
如果安装了ctags,
仍然报错:
install -s webbench /usr/local/bin
install -m 644 webbench.1
/usr/local/man/man1
install: cannot create regular file
`/usr/local/man/man1′: No such file or directory
make: *** [install] Error
1
解决方法
mkdir -m 644 -p /usr/local/man/man1
2.运行
webbench
-c 500 -t 30 http://www.baidu.com/
参数说明:-c表示并发数,-t表示时间(秒)