本文主要是介绍Redis (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
异常:(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>
这篇关于Redis (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!