可能的原因:
从库未配置参数masterauth
,值为主库的requirepass
从库出现
Partial resynchronization not possible (no cached master)
主库出现
Can't save ``in
background: fork: Cannot allocate memory
操作系统内核参数vm.overcommit_memory
或者设置不当,期望值为1。
vi /etc/sysctl.conf vm.overcommit_memory=1 systctl -p
主库重新启动replication
slaveof no one slaveof ip port