1、同时关闭RDB+AOF 2、禁用rdbsave "" 禁用rdb持久化模式,我们仍然可以使用save、bgsave生成rdb文件3、禁用aofappendonly no 禁用aof持久化模式下,我们仍然可以使用命令bgrewriteaof生成aof文件