From c90943d93e925cf0797b62981b8903d137ce3cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E5=B8=85?= <2451938760@qq.com> Date: Fri, 18 Aug 2023 08:43:59 +0000 Subject: [PATCH] add auto-benchmark/install.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 雷帅 <2451938760@qq.com> --- auto-benchmark/install.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 auto-benchmark/install.sh diff --git a/auto-benchmark/install.sh b/auto-benchmark/install.sh new file mode 100644 index 0000000..99ed40a --- /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 -- Gitee