报错信息如下
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.; nested exception is redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
原因分析:
强制把redis快照关闭了导致不能持久化
解决办法:
修改redis.conf配置文件中stop-writes-on-bgsave-error的值为 no
cd /usr/local/redis-stable
vim redis.conf
stop-writes-on-bgsave-error no
然后重启Redis
cd /usr/local
bin/redis-server stop
bin/redis-server redis-stable/redis.conf