redis-cluster集群

bind 192.168.160.135  #绑定ip
port 7000             #指定port
daemonize yes        #守护进程,后台运行

protected-mode yes    #设置以安全模式启动    
requirepass 123456    #设置密码

masterauth 123456  #随机不确定主库,但是密码设置一致,确保认证成功

dir "/data/redis_cluster/7000"   #指定文件夹
logfile "7000.log"           #设置日志
dbfilename "dump-7000.rdb"   #设置rdb操作记录文件
cluster-enabled yes   #开启集群模式
cluster-config-file nodes-7000.conf  #集群内部的配置文件
cluster-require-full-coverage no 
 #redis cluster需要16384个slot都正常的时候才能对外提供服务,换句话说,只要任何一个slot异常那么整个cluster不对外提供服务。 因此生产环境一般为no
节点配置文件

原文地址:https://www.cnblogs.com/open-yang/p/11256446.html