1.如果没有安装GCC就先执行

yum -y install gcc automake autoconf libtool make

2.安装ctags及创建一个文件夹

yum install ctags -y
mkdir -m 644 -p /usr/local/man/man1

3.获取及安装webbench

cd /opt/
curl -o WebBench-master.zip https://codeload.github.com/EZLippi/WebBench/zip/master
unzip -o WebBench-master.zip
cd WebBench-master
make && make install

二.使用webbench
在WebBench-master文件夹中运行

webbench -c 500 -t 30 http://localhosts.com

结果:

Benchmarking: GET http://localhosts.com
500 clients, running 30 sec.

以上方法整理修改自:http://blog.csdn.net/leejianjun/article/details/48020147

Related Posts: CentOS 7安装及使用WebBench压测 :