Centos6.10 安装REDIS
安装redis服务
yum install epel-release
yum install redis
修改配置
vim /etc/redis.conf
找到redis.conf 并修改 daemonize no(第128行) 为 daemonize yes
**开启客户端要确保服务端启动 **
redis-server /etc/redis.conf
测试
redis-cli ping
PONG
分布式:在从机redis.conf配置如下信息
slaveof 主机地址 主机端口
例:slaveof 192.168.6.190 6379
关闭保护模式(不配置auth)
protected-mode no
不指定访问IP
注释 # bind 127.0.0.1