用Webbench进行网站压力测试

   今天在Mac上安装经典的Webbench工具来测试一下负载,然后原本想很顺利的,过程还是出了一些问题,总结如下:

 

   由于Mac上面不一定有安装Ctags.所以要先下载Ctags然后再安装webbench

   下载Ctags地址:

   

#1下载地址:
http://ctags.sourceforge.net/

#2解压下载的文件或者手动解压都一样的
tar zxvf ctags-5.8.tar.gz

#3安装Ctags
sudo ./configure && make all && sudo make install

#修改PATH
vim ~/.bashrc
添加:PATH="/usr/local/bin:$PATH"
如果想要立即生效,在终端下输入“ export PATH="/usr/local/bin:$PATH" ”

   

 

   下载Webbench

    使用wget  或者windows下载好导入linux也行,地址:http://home.tiscali.cz/cz210552/distfiles/webbench-   1.5.tar.gz

 

root@jack-desktop:~/software# tar xvzf webbench-1.5.tar.gz   
root@jack-desktop:~/software/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@jack-desktop:~/software/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  
root@jack-desktop:~/software/webbench-1.5#   
root@jack-desktop:~/software/webbench-1.5# web  
webbench  webs     

 

    make: [tags] Error 127 (ignored) 或者 make [tags] Error 71 错误

    这个错误原因是你在make install没有权限,在前面加一句:  sudo make install就可以了

 

你可能感兴趣的:(webbench)