REPLICAOFMake this server a replica of another, or promote it with NO ONE.
| 语法 | REPLICAOF host port | NO ONE |
| 分组 | replication |
| 参数个数 | 3 |
| 起始版本 | 1.0.0 |
| 标志 | write, admin |
| 复杂度 | O(1) at the command; the full resync that follows is O(N) in the background |
| Redis 兼容性 | differs: the port argument is the primary's REPLICATION port base, not its client port (the default base is client port + 10000); chain replication is rejected |