Redis - 服务器同步命令



Redis SYNC 命令用于将从节点与主节点同步。

返回值

简单的字符串回复。

语法

以下是 Redis SYNC 命令的基本语法。

redis 127.0.0.1:6379> SYNC

示例

redis 127.0.0.1:6379> SYNC  
Entering slave output mode...  (press Ctrl-C to quit) 
SYNC with master, discarding 18 bytes of bulk transfer... 
SYNC done. Logging commands from master. 
"PING" 
"PING" 
"PING" 
"PING" 
redis_server.htm
广告
© . All rights reserved.