Skip to content

Instantly share code, notes, and snippets.

@ck1125
Created March 8, 2013 16:50
Show Gist options
  • Save ck1125/5117900 to your computer and use it in GitHub Desktop.
Save ck1125/5117900 to your computer and use it in GitHub Desktop.
rsconf = {
_id: "rs0",
members: [
{
_id: 0,
host: "127.0.0.1:27017"
},
{
_id: 1,
host: "127.0.0.1:37017"
},
{
_id: 2,
host: "127.0.0.1:47017",
arbiterOnly: true
}
]
}
rs.initiate(rsconf);
rs.status();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment