notes
stable
Mongodb
Redis
主从同步
mysql
Elasticsearch
操作系统
K8s
Etcd
消息队列
shell
Go
数据结构
OpenResty
监控
Sphinx
notes
Docs
»
Redis
»
主从同步
Edit on GitHub
主从同步
¶
# 如果主服务设置了密码
config
set
masterauth <pwd>
# 设置主服务器
SLAVEOF
192
.168.1.100
6379
# 取消同步
SLAVEOF NO ONE
Read the Docs
v: stable
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.