mongo察看replica set副本集primary主节点

printjson(db.adminCommand( { isMaster: 1 } )); 

原文地址:https://www.cnblogs.com/tonggc1668/p/10368433.html