Created
May 14, 2013 01:37
-
-
Save k0emt/5572991 to your computer and use it in GitHub Desktop.
Companion javascript to initialize MongoDB replica set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config = { _id: "m101", members:[ | |
{ _id : 0, host : "localhost:27017"}, | |
{ _id : 1, host : "localhost:27018"}, | |
{ _id : 2, host : "localhost:27019"} ] | |
}; | |
rs.initiate(config); | |
rs.status(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment