美文网首页
open-falcon(0.2.0)支持访问带密码redis

open-falcon(0.2.0)支持访问带密码redis

作者: 痞子中 | 来源:发表于2017-05-22 12:11 被阅读0次

    1、通过对源码中配置文件进行核实,需要访问redis的模块有:alarm和judge

    2、核实代码,确认需要修改源码中的6个文件:

          2.1 配置文件 config/alarm.json 和 config/judge.json

          2.2 修改源文件:

        modules/alarm/g/cfg.go 和 modules/alarm/g/redis.go

        modules/judge/g/cfg.go 和 modules/judge/g/redis.go

     alarm/g/cfg.go 在 Passwd配置

    alarm/g/redis.go增加auth密码验证:

    2.3、judge对应的cfg.go和redis.go 

    2.5  编译好的版本见如下链接

    http://pan.baidu.com/s/1qYlt236

    相关文章

      网友评论

          本文标题:open-falcon(0.2.0)支持访问带密码redis

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