Redis提示“MISONFRedis配置为保存RDB快照,但目前无法在磁盘上保留“解决办法

今天有位朋友查看他的Redis的时候,却出现了如下这段错误提示:

Response received: - MISONFRedis 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.

中文翻译

收到响应: - MISONFRedis配置为保存RDB快照,但目前无法在磁盘上保留。 可以修改数据集的命令被禁用,因为如果RDB快照失败(stop-writes-on-bgsave-error选项),此实例配置为在写入期间报告错误。请检查Redis日志以获取有关RDB错误的详细信息。

Response received: - MISONFRedis 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.

 

解决办法

其实,解决的办法也非常的简单,只要知道自己做过了什么,解决起来就方便得多了。主要是看报错提示说“stop-writes-on-bgsave-error”这个选项。从而得出:他这里明显是权限的问题,

 

他的解决办法也非常的简单,以root身份的用户重启一下redis就好了。

 

最初他是用的是普通用户启动的redis,所以报了这个错误。后来用root用户就没问题了……

    A+
发布日期:2019年04月24日 14:02:28  所属分类:Redis
最后更新时间:2019-04-24 14:02:28
付杰
  • ¥ 298.0元
  • 市场价:598.0元
  • ¥ 498.0元
  • 市场价:498.0元
  • ¥ 149.0元
  • 市场价:299.0元
  • ¥ 68.0元
  • 市场价:128.0元

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: