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