错误提示内容:
2024-06-25 16:30:49 : Connection: Redis_Server > [runCommand] PING
2024-06-25 16:30:49 : Connection: Redis_Server > Response received : -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.
2024-06-25 16:30:49 : Connection: AUTH ERROR
问题定位:
网上查阅后发现是因为,把redis快照强制关闭了导致不能持久化的问题
目前发现两种解决方案:
1、通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。
2、通过修改redis.conf配置文件,将stop-writes-on-bgsave-error值改为no(效果和1一样)
解决方案:
通过redis命令行直接改:
进入redis命令行执行:config set stop-writes-on-bgsave-error no
通过修改redis.conf文件修改:
保存退出,杀掉Redis进程,然后重新启动。