linux – 如何将dump.rdb文件加载到redis中?
发布时间:2020-12-14 02:59:06 所属栏目:Linux 来源:网络整理
导读:我有一个dump.rdb文件,它与redis.config位于同一目录中. 当我启动我的服务器时: redis-server ./redis.config 它不会加载该1 GB文件中的数据. 如何加载该数据? 解决方法 编辑配置文件以将dir选项设置为当前工作目录: # The filename where to dump the DB
我有一个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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |