Skip to content

Instantly share code, notes, and snippets.

@JanPaulEttles
Created December 8, 2011 15:41
Show Gist options
  • Select an option

  • Save JanPaulEttles/1447344 to your computer and use it in GitHub Desktop.

Select an option

Save JanPaulEttles/1447344 to your computer and use it in GitHub Desktop.
mongosecurity #1
cfg = {
_id : "myset",
members : [
{ _id : 0, host : "host0.meh.com:27017", priority : 10},
{ _id : 1, host : "host1.meh.com:27017", votes : 2}
]
}
rs.initiate(cfg)
"...Config now saved locally. Should come online in about a minute..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment