redis 主从配置文件注意

配置文件 redis.conf:

1)/slaveof 回车搜索slaveof <masterip> <masterport>

写上slaveof ip 端口号6379 如:slaveof 192.168.1.224 6379

2)如果主机设置了密码则:查找/masterauth 回车搜索masterauth <master-password>

masterauth  主机密码 如:masterauth 123456
 

猜你喜欢

转载自blog.csdn.net/qq_34579060/article/details/85051792