redis 主从不同步连接不上

127.0.0.1:6379> info replication

Replication

role:master
connected_slaves:0
master_replid:bea12d30c2c8e7aae41724165989a2713fb11147
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

一、查看防火墙和selinux是否关闭

二、配置完主从后一定不要忘记重启redis