解决方案
要想清空数据,按如下步骤操作:
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
网友评论