Home  >  Q&A  >  body text

linux - 多个服务器上redis 的主从复制配置

我有两个服务器上分别有两个redis服务器,master 在 123.206.143.112上,slave 在 123.206.156.134上,端口都是6379.
在master 的配置文件里配置了

...
bind 123.206.143.112
bind 127.0.0.1
...

slave 的配置文件

...
bind 123.206.78.134
bind 127.0.0.1
...

启动之后,slave 连接master 总是连接不了,请问我应该怎样配置?

大家讲道理大家讲道理2718 days ago357

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:49:03

    Add in slave’s configuration file:

    slaveof 123.206.143.112 6379

    Then restart slave

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:49:03

    Provide reference:
    http://note.youdao.com/share/...

    reply
    0
  • Cancelreply