错误内容:
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
未用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 yinxiangbing
- -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 yinxiangbing
- +OK