#!/bin/sh
sofeware="/home/sofeware"
zxFile="/usr/local/man/man1"
if [ ! -d "${sofeware}" ];
then
mkdir -p ${sofeware}
fi
cd /home/sofeware
wget http://zyan.cc/soft/linux/webbench/webbench-1.5.tar.gz
if [ $? -ne 0 ]; then
echo "***Error: failed to get the webbench installation package."
exit 0
fi
tar -zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install
if [ $? -ne 0 ];then
cd ../
wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz
tar -zxvf ctags-5.8.tar.gz
cd ctags-5.8
./configure && make && make install
if [ $? -ne 0 ]; then
yum -y install gcc
if [ $? -eq 0 ]; then
./configure && make && make install
fi
fi
cd ../webbench-1.5
if [ ! -d "${zxFile}" ]; then
mkdir -p ${zxFile}
fi
make && make install
fi
linux shell 安装webbench压测工具
最新推荐文章于 2021-12-13 21:29:39 发布