Browse Source

07env-install-centos.sh

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

+ 7 - 7
00base/07env-install-centos.sh

@@ -568,14 +568,14 @@ function init:redis() {
       cd ${BASE_DIR}/redis
       cd ${BASE_DIR}/redis
       tar -zxvf ${REDIS_FILE_NAME}
       tar -zxvf ${REDIS_FILE_NAME}
       cd $redis_path
       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
       cd $redis_path
-      make install PREFIX=$redis_install_path
+      #make install PREFIX=$redis_install_path
       # 写文件start.sh文件
       # 写文件start.sh文件
       cat << EOF > $redis_install_path/redis.conf
       cat << EOF > $redis_install_path/redis.conf
 # bind 127.0.0.1
 # bind 127.0.0.1