您的位置:首页 > 运维架构 > Shell

linux shell 安装webbench压测工具

2018-03-15 16:02 330 查看
#!/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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  webbench linux shell