Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

redis 持久化 aof和rdb的加载顺序问题

如果开启 aof 和 rdb 。在redis重启后, 是先加载哪个文件?

查了很多资料都说是先加载aof, 但是也说了 如果 aof文件不存在,则加载 rdb文件

但经过测试,如果 aof不存在(手动删除aof文件),貌似会创建一个新的 空的 aof文件,并没有去用 rdb文件

这是咋回事?(我的版本是Redis 5.0.8)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

主要是看到这么一张图,看着画的挺细的
image.png

https://www.jianshu.com/p/c72...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...