redis安装
1.安装redis依赖
# yum install gcc tcl gcc-c++
2.下载redis二进制包
# wget http://download.redis.io/releases/redis-3.2.9.tar.gz
3.解压并安装redis
# tar -zxvf redis-3.2.9.tar.gz
# cd redis-3.2.9
# make
# make install
4.redis config文件目录
mkdir /home/redis //创建conf目录
cp redis.conf /home/redis/redis.conf //复制conf到redis目录
vim /home/redis/redis.conf //修改配置
daemonize no 改成 daemonize yes
prot 6379 //默认端口6379
5.简单使用redis
which redis-server //查看server路径
which redis-cli //查看cli路径
redis-cli /home/redis/redis.conf //启动redis
ps aux|grep redis-server //确认redis服务启动
集群部署参考:http://www.cnblogs.com/zhengzeze/p/7325750.html