P139-P142说到
这三个步骤。
AOF文件的载入与还原
注:aof持久化的开启,可以通过修改redis.conf文件完成。
将no改为yes即可。
always: 每次操作都会立即写入aof文件中
everysec: 每秒持久化一次(默认配置)
no:不主动进行同步操作,默认30s一次
# If you have latency problems turn this to "yes". Otherwise leave it as
# "no" that is the safest pick from the point of view of durability.
当AOF文件增长到100%时进行rewrite
最小AOF文件大小64mb
AOF重写