MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
生活随笔
收集整理的這篇文章主要介紹了
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
一、錯(cuò)誤信息
今天運(yùn)行Redis時(shí)發(fā)生錯(cuò)誤,錯(cuò)誤信息如下:
(error) 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被配置為保存數(shù)據(jù)庫(kù)快照,但它目前不能持久化到硬盤(pán)。用來(lái)修改集合數(shù)據(jù)的命令不能用。請(qǐng)查看Redis日志的詳細(xì)錯(cuò)誤信息。
二、原因
強(qiáng)制關(guān)閉Redis快照導(dǎo)致不能持久化。
三、解決方案
運(yùn)行config set stop-writes-on-bgsave-error no 命令后,關(guān)閉配置項(xiàng)stop-writes-on-bgsave-error解決該問(wèn)題。
root@ubuntu:/usr/local/redis/bin# ./redis-cli 127.0.0.1:6379> config set stop-writes-on-bgsave-error no OK 127.0.0.1:6379> lpush myColour "red" (integer) 1總結(jié)
以上是生活随笔為你收集整理的MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: spring context 初始化两次
- 下一篇: 你所需要的java基础篇深入解析大汇总