linux - 多个服务器上redis 的主从复制配置
大家讲道理
大家讲道理 2017-04-17 15:47:03
0
2
354

我有两个服务器上分别有两个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 总是连接不了,请问我应该怎样配置?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
大家讲道理

Add in slave’s configuration file:

slaveof 123.206.143.112 6379

Then restart slave

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!