问题描述
之前搭建的项目中使用到redis缓存生成的验证码,但是今天进入网站后,验证码没了。报了一个错
Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: 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生成的error日志,那就去看下。
使用tail -n 30 sys-error.log
查看最后30行的日志信息。
RDB持久化到磁盘失败,那先去看看是不是磁盘空间不够了。
这里又学到了一个命令。df