下载地址:http://download.redis.io/releases/
redis单节点安装:
1、redis下载
http://download.redis.io/releases/
2、redis的tar包上传到linux
3、解压
tar -zxf redis-2.8.18.tar.gz
cd redis-2.8.18
4、安装gcc、tcl
到此处:https://opsx.alibaba.com/mirror?lang=zh-CN
shell> curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
shell> yum clean all
shell> yum makecache
shell> yum install gcc tcl -y
编译redis源码
shell> make MALLOC=libc
安装: 指定安装路径
shell> make install PREFIX=/opt/redis
5.配置环境变量
export REDIS_HOME=/opt/redis
export PATH=$PATH:$REDIS_HOME/bin
6.安装redis服务:
cd