我有一个dump.rdb文件,它与redis.config位于同一目录中.
当我启动我的服务器时:
redis-server ./redis.config
它不会加载该1 GB文件中的数据.
如何加载该数据?
解决方法
编辑配置文件以将dir选项设置为当前工作目录:
# 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. # # Also the Append Only File will be created inside this directory. # # Note that you must specify a directory here,not a file name. dir /current/working/directory