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

问题描述:昨天刚装好Redis服务器,测试没问题,今天打开虚机连接redis数据库时突然报错: 

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

网上查了一些相关解决方案,通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。

有两种修改方法,一种是通过redis命令行修改,另一种是直接修改redis.conf配置文件

 一. 命令行方式

命令行修改方式示例:

127.0.0.1:6379> config set stop-writes-on-bgsave-error no 

二. 修改配置文件

修改redis.conf文件:vi打开redis-server配置的redis.conf文件,然后使用快捷匹配模式:/stop-writes-on-bgsave-error定位到stop-writes-on-bgsave-error字符串所在位置,

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

再次测试,问题解决:

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

 

上一篇:Redis学习笔记(八) RDB持久化


下一篇:redis的rdb和aof