码迷,mamicode.com
首页 > 其他好文 > 详细

redis基于密码验证的主从复制配置

时间:2018-04-16 14:36:50      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:redis基于密码验证的主从复制配置

从库配置:

从库内网ip:192.168.1.9
[root@localhost ~]# grep -Ev "^#|^$" /usr/local/redis/etc/redis.conf|egrep "bind|tcp-backlog|daemonize|logfile|dir|slaveof|masterauth|requirepass|maxclients|maxmemory|appendonly|port"

bind 0.0.0.0
port 3089
tcp-backlog 1024
daemonize yes
logfile "/data/redis/log/10689redis.log"
dir /data/redis/data
slaveof 192.168.1.10 3089
masterauth Zyojdf
requirepass Zyojdf
maxclients 100000
maxmemory 3G
appendonly no
appendfilename "appendonly.aof"

主库配置:

主库内网ip:192.168.1.10

[root@localhost ~]# grep -Ev "^#|^$" /usr/local/redis/etc/redis.conf|egrep "bind|tcp-backlog|daemonize|logfile|dir|slaveof|masterauth|requirepass|maxclients|maxmemory|appendonly|port"

bind 0.0.0.0
port 3089
tcp-backlog 1024
daemonize yes
logfile "/data/redis/log/10689redis.log"
dir /data/redis/data
requirepass Zyojdf
maxclients 100000
maxmemory 3G
appendonly no
appendfilename "appendonly.aof"

redis基于密码验证的主从复制配置

标签:redis基于密码验证的主从复制配置

原文地址:http://blog.51cto.com/wujianwei/2103930

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!