diff --git a/auto-benchmark/install.sh b/auto-benchmark/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..99ed40a704d10afdafb80511eb799e1ec5e77e3e --- /dev/null +++ b/auto-benchmark/install.sh @@ -0,0 +1,20 @@ +#!/bin/bash +#把安装包和脚本一起上传,执行脚本就可以自动安装sysbench + +#创建变量,保存安装地址 +file_packge="sysbench-1.0.zip" +install_dir="/opt/sysbench" + +#解压安装包 +cd $install_dir +unzip $file_packge + +#下载安装依赖,需要连网 +yum -y install make automake libtool pkgconfig libaio-devel mariadb-devel openssl-devel + +#开始安装 +cd ${install_dir}/sysbench-1.0 +./autogen.sh +./configure +make +make install \ No newline at end of file