One - One Code All

Blog Content

Redis报错:redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snap

Nosql   2018-05-02 21:02:24

一 原因

强制把redis快照关闭了导致不能持久化的问题。


二 解决方案


两种方式二选一


通过redis-cli连接到服务器后执行以下命令:config set stop-writes-on-bgsave-error no

修改redis.conf文件:vi打开redis-server配置的redis.conf文件,然后定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no即可。


查看unit服务

systemctl list-unit-files --type=service


使服务文件生效:systemctl daemon-reload;


相关命令

启动redis:systemctl start redis;

停止redis:systemctl stop redis;

查看redis状态:systemctl status redis;



上一篇:Mac安装rabbitmq和redis
下一篇:Mac 使用git出现xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

The minute you think of giving up, think of the reason why you held on so long.