美文网首页
REDIS----配置文件----INCLUDES

REDIS----配置文件----INCLUDES

作者: JuMinggniMuJ | 来源:发表于2020-05-31 08:16 被阅读0次

    INCLUDES部分:

    # Include one or more other config files here.  This is useful if you
    # have a standard template that goes to all Redis servers but also need
    # to customize a few per-server settings.  Include files can include
    # other files, so use this wisely.
    

    在此处包括一个或多个其他配置文件。 如果您具有可用于所有Redis服务器的标准模板,但还需要自定义一些每台服务器设置,则此功能很有用。 包含文件可以包含其他文件,因此请明智地使用它.

    # Notice option "include" won't be rewritten by command "CONFIG REWRITE"
    # from admin or Redis Sentinel. Since Redis always uses the last processed
    # line as value of a configuration directive, you'd better put includes
    # at the beginning of this file to avoid overwriting config change at runtime.
    

    注意,选项“ include”将不会被admin或Redis Sentinel中的命令“ CONFIG REWRITE”重写。 由于Redis始终使用最后处理的行作为配置指令的值,因此最好将include放在此文件的开头,以避免在运行时覆盖配置更改。
    这句话的意思是在redis配置文件中后面的配置文件会覆盖前面的配置文件,为了避免我们引入的配置文件覆盖我们原本的配置文件,所以最好在配置文件的开头引入它

    # If instead you are interested in using includes to override configuration
    # options, it is better to use include as the last line.
    

    相反,如果您有兴趣使用include覆盖配置选项,则最好使用include作为最后一行
    如果想要你引入的配置文件不被原有配置所干扰,那就放在最后

    相关文章

      网友评论

          本文标题:REDIS----配置文件----INCLUDES

          本文链接:https://www.haomeiwen.com/subject/yuqlzhtx.html