🔖 安装 redis 脚本
parent
8555698a7a
commit
6463f8608d
|
@ -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;;
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue