diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index cf12927..e326218 100644 --- a/00base/07env-install-centos.sh +++ b/00base/07env-install-centos.sh @@ -568,12 +568,12 @@ function init:redis() { cd ${BASE_DIR}/redis tar -zxvf ${REDIS_FILE_NAME} cd $redis_path - #yum -y install gcc - #yum -y install centos-release-scl - #yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils - #scl enable devtoolset-9 bash - #echo 'source /opt/rh/devtoolset-9/enable' >> /etc/profile - #gcc -v + yum -y install gcc + yum -y install centos-release-scl + yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils + scl enable devtoolset-9 bash + echo 'source /opt/rh/devtoolset-9/enable' >> /etc/profile + gcc -v cd $redis_path make install PREFIX=$redis_install_path # 写文件start.sh文件