我的redis rdb文件不断增长并且不断增长,直到数据库变得无法运行并且连接被拒绝。我意识到这与一些配置设置有关 - 我正在使用默认的配置文件。
有什么办法可以阻止这个吗?我不关心持续备份。
答案 0 :(得分:0)
这显然是在redis.conf中,
# Note: you can disable saving at all commenting all the "save" lines.
#
# 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 900 1
save 300 10
save 60 10000
上面的文字是在redis.conf中,如果你不想保存rdb文件,请注释三行以save开头,如
# Note: you can disable saving at all commenting all the "save" lines.
#
# 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 900 1
# save 300 10
# save 60 10000