Skip to content

Instantly share code, notes, and snippets.

@brygom
Last active November 20, 2018 06:22
Show Gist options
  • Save brygom/61b443586c9208a97a225df693fba771 to your computer and use it in GitHub Desktop.
Save brygom/61b443586c9208a97a225df693fba771 to your computer and use it in GitHub Desktop.
#! /bin/sh
mongo -u mongo-admin -p admin --authenticationDatabase admin <<EOF
rs.initiate()
rs.add('mong_a:27017')
rs.add('mong_b:27017')
quit()
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment