Redis使用默认配置在数周内不保存任何内容

Redis使用默认配置在数周内不保存任何内容,redis,Redis,我在两台不同的机器上遇到过这个问题,配置文件与默认值完全相同,显示: save 900 1 save 300 10 save 60 10000 但在我从redis cli手动调用SAVE之前,不会将任何更改保存到dump.rdb。DB有10多个更改,但远远少于10000个,这可能是最后一个选项覆盖了以前的选项吗?为什么数据在RAM中保存数周而不保存 版本是2.8.4,很可能redis服务器没有将dump.rdb文件写入当前目录的权限 # The filename where to dump t

我在两台不同的机器上遇到过这个问题,配置文件与默认值完全相同,显示:

save 900 1
save 300 10
save 60 10000
但在我从redis cli手动调用SAVE之前,不会将任何更改保存到dump.rdb。DB有10多个更改,但远远少于10000个,这可能是最后一个选项覆盖了以前的选项吗?为什么数据在RAM中保存数周而不保存


版本是2.8.4,很可能redis服务器没有将dump.rdb文件写入当前目录的权限

# The filename where to dump the DB
dbfilename dump.rdb

# The working directory.
#
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
#
# The Append Only File will also be created inside this directory.
#
# Note that you must specify a directory here, not a file name.
dir ./
尝试将dir更改为/tmp/并查看文件是否被写入。 然后将配置更改为您选择的其他可写目录。

当我在客户机中键入SAVE时,所有内容都已成功保存,因此从逻辑上讲,这不是权限问题。