本文主要是介绍Redis Error --MISCONF Redis is configured to save RDB snapshots省略,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1,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
(linux)未用root启动,用的app用户(没有最高权限) 强制shutdown后,需要执行该命令后,即可用程序保存数据到redis数据库中。
相关操作:
(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.
使用如下命令解决:
config set stop-writes-on-bgsave-error no
- set 'name' 'shenhui'
- -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.
- config set stop-writes-on-bgsave-error no
- +OK
- set 'name' 'shenhui'
- +OK
这篇关于Redis Error --MISCONF Redis is configured to save RDB snapshots省略的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!