首页 > 代码库 > linux下redis自动安装脚本

linux下redis自动安装脚本

#!/bin/bash
yum -y install wget
wget http://download.redis.io/releases/redis-3.2.3.tar.gz
tar xf redis-3.2.3.tar.gz
cd /home/redis/redis-3.2.3
make
cd /home/redis/redis-3.2.3
make PREFIX=/usr/local/redis install
cp /home/redis/redis-3.2.3/redis.conf /usr/local/redis/
sed -i ‘s/daemonize no/daemonize yes/g‘ /usr/local/redis/redis.conf


本文出自 “dsczs博客” 博客,请务必保留此出处http://dsczs.blog.51cto.com/9480367/1855175

linux下redis自动安装脚本