redissentinel安装

编程

启动方式 redis-server redis-6381.conf

/rdb/6380/redis-6381.conf

port 6380

bind 127.0.0.1

requirepass "myredis"

daemonize yes

logfile "6381.log"

dbfilename "dump-6381.rdb"

dir "/Users/huitingting/notes/rdb/6380"

#如若master设置了认证密码,那么所有redis数据节点都配置上masterauth属性

#masterauth "myredis"

slaveof 127.0.0.1 6379

~/notes/rdb/rdb_sentinel/26379/sentinel-26379.conf

#filename: sentinel-26379.conf

port 26379

daemonize yes

logfile "26379.log"

dir "/Users/huitingting/notes/rdb/rdb_sentinel/26379"

#redis数据master节点设置了认证,则需要如下配置

# sentinel myid 85292963b7035a233f58e4cacb7e1d615efe3cb0 #

sentinel deny-scripts-reconfig yes

sentinel monitor mymaster 127.0.0.1 6379 1

sentinel auth-pass mymaster myredis

# Generated by CONFIG REWRITE

protected-mode no

sentinel config-epoch mymaster 0

sentinel leader-epoch mymaster 0

sentinel known-replica mymaster 127.0.0.1 6381

sentinel current-epoch 0

以上是 redissentinel安装 的全部内容, 来源链接: utcz.com/z/511726.html

回到顶部