MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk

ubuntu上面redis报下列错误:redis

Caused by: redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.ubuntu

Commands that may modify the data set are disabled. Please check Redis logs for details about the error.server

缘由分析:
查看redis-server.log,发现报Failed opening .rdb for saving: Read-only file system
分析多是rdb权限问题,因而给文件授予777,完了仍是不行,因而把启动方式改为配置文件启动,竟然成功了。。it


解决方案:
a.链接redis-cli后执行config set stop-writes-on-bgsave-error no(此方式试过不行)
b.查看redis.conf里的dir 目录,将redis.conf受权成755以上
c.将启动方式 /etc/init.d/redis-server改为配置文件启动(缘由多是安装时的配置文件路径问题形成)。io

相关文章
相关标签/搜索