🔖 安装 redis 脚本

pull/11/head
Zhang Peng 2018-02-22 09:48:39 +08:00
parent 8555698a7a
commit 6463f8608d
2 changed files with 14 additions and 0 deletions

View File

@ -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;;

View File

@ -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