您的位置:首页 > 数据库 > Redis

Redis (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis

2017-03-18 17:21 489 查看
异常:(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.



原因:强制关闭Redis快照导致不能持久化。

 

解决方案:运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

boonya@ubuntu:/usr/local/redis/redis-3.0.3$
boonya@ubuntu:/usr/local/redis/redis-3.0.3$ ./src/redis-cli
127.0.0.1:6379> auth 123456
OK
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> set foo tar
OK
127.0.0.1:6379> get foo
"tar"
127.0.0.1:6379>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐