Home  >  Q&A  >  body text

redis 不能写数据了

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

提升上面的这个错误 不知道为什么
我找了很多答案 网上的朋友提示这样:
config set stop-writes-on-bgsave-error no
把这个配置关闭了
请问下 关闭了这个会有什么影响吗???

伊谢尔伦伊谢尔伦2752 days ago1163

reply all(5)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-04-27 09:04:32

    config set stop-writes-on-bgsave-error no

    Just ignore the error, your rdb persistence will still be wrong, causing the rdb backup to become invalid. It’s best to check if your problem arises:

    1. Whether the redis program user has read and write permissions for the rdb file.

    2. rdbforkWhen the child process backs up data, the memory occupied by redis will double. Check whether your server has enough memory at this time.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-04-27 09:04:32

    Does the file not have write permission?

    reply
    0
  • 某草草

    某草草2017-04-27 09:04:32

    Those with read and write permissions

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-04-27 09:04:32

    RDBRedis持久化方式的一种,会定期在磁盘上做持久化操作。
    目测是因为RedisNo permission to write to disk.

    reply
    0
  • 黄舟

    黄舟2017-04-27 09:04:32

    Refer to this article http://www.cnblogs.com/qq7829...

    It says to add vm.overcommit_memory = 1 in /etc/sysctl.conf and then restart to solve the problem. Let’s try it and see if it can be solved

    Also check if your disk is full. This problem will also occur in this case. You can use the command df -h to check the disk usage

    reply
    0
  • Cancelreply