gpt4 book ai didi

Redis rdb 文件不断变大

转载 作者:可可西里 更新时间:2023-11-01 11:43:07 28 4
gpt4 key购买 nike

我的 redis rdb 文件的大小一直在增长,直到数据库变得不可操作并且连接被拒绝。我意识到这与某些配置设置有关 - 我使用的是默认配置文件。

有什么办法可以防止这种情况发生吗?我不关心持续备份。

最佳答案

这显然在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

关于Redis rdb 文件不断变大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20430786/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com