redis运行错误及修改

来源:互联网 发布:亚马逊域名 编辑:程序博客网 时间:2024/06/06 19:03

在linux上运行redis,但没有正常关闭,下次运行时就出现下面的错误提示

(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.





解决方案:


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


0 0
原创粉丝点击