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

使用redis数据库报错: MISCONF Redis is configured to save RDB snapshots

2017-11-07 14:51 197 查看
在使用redis数据库过程中报错:

redis.clients.jedis.exceptions.JedisDataException: 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.

在网上看到的一些方法都是:

1、运行redis-cli命令连接到redis数据库

在执行redis-cli命令时可能会出现报错:(error) NOAUTH Authentication required.

解决方法执行命令:auth password

2、运行命令:config set stop-writes-on-bgsave-error no

这种方法只能暂时使爬虫可以运行,但是过段时间后还是会产生一样的报错,也就是这个方法不能根本解决问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐