gpt4 book ai didi

redis - 如何在Redis v2.4.6中使Redis从站只读?

转载 作者:行者123 更新时间:2023-12-02 19:29:54 25 4
gpt4 key购买 nike

我在 redis.conf 文件中使用了从属只读 yes 。

CONFIG SET "slave-read-only" "yes"
(error) ERR Unsupported CONFIG parameter: slave-read-only

如何设置相同?

最佳答案

来自Redis documentation :

Since Redis 2.6, slaves support a read-only mode that is enabled by default. This behavior is controlled by the slave-read-only option in the redis.conf file, and can be enabled and disabled at runtime using CONFIG SET.

对于任何早于 2.6 的 Redis 版本,slave-read-only 参数不可用(因此无法识别)。因此,在 Redis v2.4.6 中,您将无法设置该参数。

关于redis - 如何在Redis v2.4.6中使Redis从站只读?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58132649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com