Browse Source

07env-install-centos.sh

lizw 2 years ago
parent
commit
abbb70d0c5
1 changed files with 6 additions and 6 deletions
  1. 6 6
      00base/07env-install-centos.sh

+ 6 - 6
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文件