3条回答 默认 最新
战在春秋 2017-04-09 13:41关注引自官方文档:
By default Redis saves snapshots of the dataset on disk, in a binary file called dump.rdb.
要想清空数据,按如下步骤操作:
1 停止redis server , 找到redis.conf文件中如下部分:
# It is also possible to remove all the previously configured save
# points by adding a save directive with a single empty string argument
# like in the following example:
#
# save ""
然后将 save ""行注释(#)去掉2 删除.rdb文件
3 重启redis server
本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用
