剑轩

Redis常用配置

电脑版发表于:2018/12/7 16:59


     

 配置主从节点

  slaveof 127.0.0.1 6379

  

  可能会遇到持久化错误:Error reply to PING from master: ‘-MISCONF Redis is configured to save RDB snapshots

  把stop-writes-on-bgsave-error设置为no

 

   


 允许远程连接配置

   

     注释掉:bind 127.0.0.1

     

     protected-mode为no

      


 配置登录密码

     requirepass  123456(需要登录的密码)


 集群的时候配置主节点密码

     masterauth 123!@#

     


 允许远程执行命令配置









关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢