windows11-docker 搭建redis2.8主从复制提示:Failed trying to load the MASTER synchronization DB from disk

发现从库同步失败,日志提示
Failed trying to load the MASTER synchronization DB from disk
猜测是系统的锅;
#master
bind 0.0.0.0 port 6379 timeout 65 maxclients 10000 databases 16 maxmemory 1048576000 dbfilename dump.rdb dir ./ save 900 1 save 300 10 save 60 10000 appendonly yes appendfsync always appendfilename "appendonly.aof" rdbcompression yes slave-read-only yes requirepass 000415

 

#slave 

bind 0.0.0.0
port 6379
timeout 65
maxclients 10000
databases 16
maxmemory 1048576000


dbfilename dump.rdb
# dir ./
save 900 1
save 300 10
save 60 10000
appendonly yes
appendfsync always
appendfilename "appendonly.aof"
rdbcompression yes
slave-read-only yes




slaveof 172.17.0.2 6379
requirepass 000415
masterauth 000415

解决方式:win11上遇到同样的问题 Failed trying to load the MASTER synchronization DB from disk,取消了从服务器的data挂载,并且注释了从服务器redis.conf的dir ./项后,恢复正常

参考信息:

http://www.manongjc.com/detail/51-pzzjnudzljdbhah.html

https://segmentfault.com/q/1010000015778285

posted @ 2023-02-27 13:32  Vitascope  阅读(501)  评论(0编辑  收藏  举报