diff --git a/codes/deploy/main.sh b/codes/deploy/main.sh index 01a94ac..1e636d4 100644 --- a/codes/deploy/main.sh +++ b/codes/deploy/main.sh @@ -54,6 +54,7 @@ cat << EOF [jdk8] install jdk8 [maven] install maven [tomcat] install tomcat8 [nginx] install nginx [nodejs] install node.js [elk] install elk + [redis] install redis 【3 - Recommended Tools】 [sdk] install sdkman @@ -84,6 +85,7 @@ function chooseOper() { nodejs ) ${filepath}/tool/nodejs/install-nodejs.sh;; tomcat ) ${filepath}/tool/tomcat/install-tomcat8.sh;; elk ) ${filepath}/tool/elk/install-elk.sh;; + redis ) ${filepath}/tool/redis/install-redis.sh;; # 3 - Recommended Tools sdk ) ${filepath}/tool/sdk/install-sdk.sh;; diff --git a/codes/deploy/tool/redis/install-redis.sh b/codes/deploy/tool/redis/install-redis.sh new file mode 100644 index 0000000..9f4a774 --- /dev/null +++ b/codes/deploy/tool/redis/install-redis.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +echo -e "\n>>>>>>>>> install redis" + +mkdir -p /opt/software/redis +cd /opt/software/redis + +version=4.0.8 +wget http://download.redis.io/releases/redis-${version}.tar.gz +tar -zxvf redis-${version}.tar.gz +cd redis-${version} +make