MISCONF Redis is configured to save RDB snapshots,Redis 数据存取出错

  1. 之前强制退出了redis,以及关了电脑,等电脑开启之后,在redis上存数据存不了,删数据也删不掉
    报错信息: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.
  2. 翻译过来就是:Redis本来是被配置为保存数据库快照,但它目前不能存数据到硬盘
    解决方案: 输入 redis-cli 进入redis终端,
                    再输入config set stop-writes-on-bgsave-error no

    意思是操作出错是停止写数据到磁盘,是为了不影响后续操作,故需要将该项值改为no
    如果还不行的话在redis.conf文件中 找到protect mode 修改为no,再重启服务试试

猜你喜欢

转载自blog.csdn.net/Faker_Second/article/details/81162633