JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to
网站连续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
本文内容到此结束,更多内容可关注公众号
还没有评论,来说两句吧...