Created
February 25, 2015 08:19
-
-
Save lysender/9ec4295e1528fffed34e to your computer and use it in GitHub Desktop.
Create Mongo DB Replica Set
This file contains 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
# login to mongo and paste below config | |
> rsconf={"_id" : "myawesomedb","version" : 1,"members" : [{"_id" : 1, "host" : "localhost:27017"}]} | |
> rs.initiate(rsconf); | |
> rs.status(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment