查看slave端的日志:
tail -n200 /var/log/redis_6379.log
在112上运行如下命令:
[root@host112 log]# telnet 192.168.1.111 6379 有如下结果:
[root@host112 log]# telnet 192.168.1.111 6379
Trying 192.168.1.111...
Connected to 192.168.1.111.
Escape character is '^]'.
-DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2)> Connection closed by foreign host.
参考http://arui.me/index.php/archives/151/
将master的这一项protected-mode由yes改为no,就可以正常实现复制了。该参数是3.2版本之后加入的新特性。
(未完待续)