切換rdb到aofredis-cli 登陸redis,而後經過命令,激活aof持久化127.0.0.1:6379> CONFIG set appendonly yes #用命令激活aof持久化(臨時生效,注意寫入到配置文件)OK127.0.0.1:6379> 127.0.0.1:6379> 127.0.0.1:6379> CONFIG SET save "" #關閉rdb持久化redis