JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to

末蓝、 2021-12-14 05:49 248阅读 0赞

网站连续2次突然访问不了,但是nginx和tomcat的进程都正常,然后查看tomcat的日志,发现如下内容:

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.

解决方案为:将stop-writes-on-bgsave-error设置为no

办法有2种:

1、在命令行修改该参数,马上生效

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

2、修改redis的配置文件,重启redis
stop-writes-on-bgsave-error no

本文内容到此结束,更多内容可关注公众号

20190810225416821.jpg

发表评论

表情:
评论列表 (有 0 条评论,248人围观)

还没有评论,来说两句吧...

相关阅读