redis-持久化/磁盘写入报错(无法set值)

综述

redis持久化的功能很强大,但是有时候我们会遇到一些问题。

错误信息

Exception in thread "main" 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.

原因分析

只需要更改目录权限问题就好,或者设置配置文件。

方法

config set stop-writes-on-bgsave-error no

你可能感兴趣的:(redis)