
本文共 3441 字,大约阅读时间需要 11 分钟。
Redis������������������
Redis������������������
���������������Redis���������������������������������������������������������������Slave������������������Master������������������������������������������������������������������������������From���������������������������������������������������������������������������������������������
������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
1. ������������������
- ��������������������� ���������������
masterhost
���masterport
���������������������IP������������ - ������socket������ From������������������
replicationCron()
���������������������������������������������socket��� - ������������ ������������ACL������������From���������������auth���������������������������������������������
2. ������������������
- ������������ From������������������������������psync���������������������������������������RDB���������������������������
- ������������ ���������������������������������������������������������������������������������������������������From������������������������������������������������������������������������������������
3. ������������������
- ������������ ���������������������������������������������������From������������������������������������������������������
- ������������ ������������������ping���replconf ack���������������������������������������������
������������������
���������������
������������������
- ���������������������������������������������������������������������������������
- ������Redis������������������������������������������������������������������
- ��������������������������� Redis���������������flush-timeout������������������������
������������
cp redis.conf redis-6381.confcp redis.conf redis-6382.conf
-
������From��������� -������������������������������
port
��������������������������� -������������������ACL��������������������������������������� -���������������requirepass
���������ACL��������������� -
������������������
- ���������������ACL���������������������
masterauth
��� - ������������������������
repl-disable-tcp-nodelay
������ - ������Redis���������
- ������������������������
ps -elf
������������������ - ���������������������
- ������From���������������������
- ������������������Redis������
repl-disable-tcp-nodelay no
���������������������������������yes
������������������ - ���������������������������������������������������������
���������������
redis-server /usr/local/redis/bin/redis-6379.confredis-server /usr/local/redis/bin/redis-6381.confredis-server /usr/local/redis/bin/redis-6382.conf
redis-cli -p 6379 info replication
������������������������
redis-cli --user Peng -p 6381 slaveof 127.0.0.1 6379redis-cli --user Peng -p 6382 slaveof 127.0.0.1 6379
���anda������������
���������������������������
���������������������������������������������������������������������������������������From���������������������������������������������������
������
���������������Redis������������������������������������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
