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

Redis Error --MISCONF Redis is configured to save RDB snapshots省略

2014-05-09 17:20 309 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐