Skip to content

Instantly share code, notes, and snippets.

@lysender
Created February 25, 2015 08:19
Show Gist options
  • Save lysender/9ec4295e1528fffed34e to your computer and use it in GitHub Desktop.
Save lysender/9ec4295e1528fffed34e to your computer and use it in GitHub Desktop.
Create Mongo DB Replica Set
# 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