发布于 2015-09-14 14:59:38 | 191 次阅读 | 评论: 0 | 来源: 网络整理
The replSetGetStatus command returns the status of the replica set from the point of view of the current server. You must run the command against the admin database. The command has the following prototype format:
{ replSetGetStatus: 1 }
However, you can also run this command from the shell like so:
rs.status()