部署Redis(脚本安装)

时间:2021-01-21 21:39:40

部署Redis(脚本安装)

#/bin/bash
# DES:Redis Deploy
# Author: will_xue
# Email:linuxcto@aliyun.com
# DATE : --
# VERSION : ## Install Plug
yum install -y gcc gcc-c++ automake autoconf libtool make tcl ## Install Redis(src)
cd /tmp/
tar zxf redis-stable.tar.gz
cd redis-stable
make -j2
make -j2 install ## Configure File
mkdir -p /etc/redis
cp redis.conf /etc/redis/.conf ## deamon process
sed -i "s/daemonize no/deamonize yes" /etc/redis/.conf # Start Redis
redis-server /etc/redis/.conf