Differences between revisions 1 and 2
Revision 1 as of 2017-11-23 09:36:21
Size: 194
Editor: PieterSmit
Comment:
Revision 2 as of 2017-11-23 09:39:08
Size: 337
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
 * Check if current server is the write
   {{{ mongo admin --host $ip -u root -p $pass --quiet --eval "db.isMaster()['ismaster']" }}}


MongoDB nosql notes

Replicaset

  • View members
    •  mongo admin --host $ip -u root -p $pass  -eval "rs.status()" 

  • Check if current server is the write
    •  mongo admin --host $ip -u root -p $pass --quiet --eval "db.isMaster()['ismaster']"  

...


CategoryLinux

MongoDb (last edited 2020-07-24 00:29:21 by PieterSmit)