Parameters that need to be modified in the redis.config of the redis configuration cluster

port 7000       // 端口号
bind 192.168.249.66 // ip
daemonize yes   // 开启守护进程
dir "/opt/redis-5.0.4/cluster-test/data"  // 集群的工作目录
logfile "/opt/redis-5.0.4/cluster-test/log/cluster-7000.log" // 日志文件
dbfilename "dump-7000.rdb" 
cluster-enabled yes   // 启用集群功能
cluster-config-file nodes-7000.conf   // 集群配置文件的名字
cluster-require-full-coverage no  // #redis cluster需要16384个slot都正常的时候才能对外提供服务,换句话说,只要任何一个slot异常那么整个cluster不对外提供服务。 因此生产环境一般为no
cluster-node-timeout 5000  //请求超时  默认15秒,可自行设置
appendonly yes  //aof日志开启  有需要就开启,它会每次写操作都记录一条日志

Guess you like

Origin blog.csdn.net/sinat_18538231/article/details/104045889