Browse Source

07env-install-centos.sh

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

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

@@ -573,14 +573,17 @@ function init:redis() {
       yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
       yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
       scl enable devtoolset-9 bash
       scl enable devtoolset-9 bash
       echo 'source /opt/rh/devtoolset-9/enable' >> /etc/profile
       echo 'source /opt/rh/devtoolset-9/enable' >> /etc/profile
+      echo 'ttt-888'
       source /etc/profile
       source /etc/profile
+      echo 'ttt-999'
       gcc -v
       gcc -v
+      echo 'ttt-000'
       mkdir -p $redis_install_path
       mkdir -p $redis_install_path
-      echo '111'
+      echo 'ttt-111'
       cd $redis_path
       cd $redis_path
-      echo '222'
+      echo 'ttt-222'
       make install PREFIX=$redis_install_path
       make install PREFIX=$redis_install_path
-      echo '333'
+      echo 'ttt-333'
       # 写文件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
@@ -657,7 +660,7 @@ aof-rewrite-incremental-fsync yes
 rdb-save-incremental-fsync yes
 rdb-save-incremental-fsync yes
 jemalloc-bg-thread yes
 jemalloc-bg-thread yes
 EOF
 EOF
-      echo '444'
+      echo 'ttt-444'
       cat << EOF > $redis_install_path/start.sh
       cat << EOF > $redis_install_path/start.sh
 #!/bin/bash
 #!/bin/bash
 #set -x
 #set -x
@@ -686,11 +689,11 @@ else
   echo 'redis已停止!'
   echo 'redis已停止!'
 fi
 fi
 EOF
 EOF
-      echo '555'
+      echo 'ttt-555'
       chmod +x $redis_install_path/start.sh
       chmod +x $redis_install_path/start.sh
-      echo '666'
+      echo 'ttt-666'
       chmod +x $redis_install_path/kill.sh
       chmod +x $redis_install_path/kill.sh
-      echo '777'
+      echo 'ttt-777'
     fi
     fi
   "
   "
   check::exit_code "$?" "redis" "$host 安装redis环境" "exit"
   check::exit_code "$?" "redis" "$host 安装redis环境" "exit"