- 报错:
(error) 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快照导致不能持久化。
解决方案:
将stop-writes-on-bgsave-error设置为no
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
- 报错:
redis 运行save命令时,报错
127.0.0.1:6379> save
(error) ERR
解决:
将redis安装目录(config get dir:获取 redis 安装目录)其他用户权限改为具有读、写、执行的权限:
$ sudo chmod -R 777 [redis安装目录]