今天在使用Windows 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.
意思是:
Redis配置保存的数据库快照,但目前不能坚持盘。可能修改数据集的命令被禁用。请检查Redis日志错误详细信息。
也就是说Redis的快照被强制关闭了所以不能持久化。
解决办法:
打开redis-cli,执行config set stop-writes-on-bgsave-error no