1、下载安装包
wget http://download.redis.io/releases/redis-3.0.0.tar.gz
2、安装
mkdir /usr/local/redis
cp redis-3.0.0.tar.gz /usr/local/redis
cd /usr/local/redis
tar -zxvf redis-3.0.0.tar.gz
cd /usr/local/redis/redis-3.0.0
make PREFIX=/usr/local/redis install
cp /usr/local/redis/redis-3.0.0/redis.conf /usr/local/redis/bin
vim /usr/local/redis/bin/redis.conf
3、修改配置文件
vim /usr/local/redis/bin/redis.conf
daemonize yes#后端启动
requirepass#密码
开启远程访问
注释掉
4、启动
cd /usr/local/redis/bin
./redis-server ./redis.conf