redis 不能写数据了
伊谢尔伦
伊谢尔伦 2017-04-27 09:02:32
0
5
1125

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
把这个配置关闭了
请问下 关闭了这个会有什么影响吗???

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all (5)
我想大声告诉你
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.

    仅有的幸福

    Does the file not have write permission?

      某草草

      Those with read and write permissions

        过去多啦不再A梦

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

          黄舟

          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 commanddf -hto check the disk usage

            Latest Downloads
            More>
            Web Effects
            Website Source Code
            Website Materials
            Front End Template
            About us Disclaimer Sitemap
            php.cn:Public welfare online PHP training,Help PHP learners grow quickly!