报错:redis.clients.jedis.exceptions.JedisDataException: 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 disable

报错:redis.clients.jedis.exceptions.JedisDataException: 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日志(Failed opening the RDB file dump.rdb (in server root dir /usr/local/redis-3.2.12/src) for saving: Permission denied)
翻译:redis.clients.jedis.exceptions。JedisDataException: MISCONF Redis配置为保存RDB快照,但目前无法持久保存在磁盘上。可能修改数据集的命令被禁用。请查看Redis日志了解错误的详细信息。redis日志(打开RDB文件转储失败。rdb(在服务器根目录/usr/local/redis-3.2.12/src中)保存:拒绝权限)
原因:强制关闭redis快照导致不能持久化,redis rdb写入权限拒绝
解决:修改文件读写权限

iMac:~ acui$ cd /usr/local/redis-3.2.12/src/
iMac:src acui$ sudo chmod -R 777 ..

参考:
Mac 安装 redis
Redis "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk"问题的解决(转)

posted @ 2019-02-19 22:52  亭子亭子大亭子  阅读(2140)  评论(0编辑  收藏  举报