安装:
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
可能会出现的错误
/bin/sh: ctags: command not found
没有安装 ctags
yum install ctags
cc -Wall -ggdb -W -O -c -o webbench.o webbench.c
make: cc: Command not found
make: *** [webbench.o] Error 127
没有安装gcc
yum install -y gcc gcc-c++
如果出现下面的错误:
cannot create regular file `/usr/local/man/man1′: No such file or directory
这时需要创建/usr/local/man/man1文件来解决:
mkdir -m 644 -p /usr/local/man/man1
最后再次:make && make install
压力测试:
webbench -c 100 -t 10 http://127.0.0.1/pic/001.jpg