Created
March 25, 2020 00:26
-
-
Save lmmendes/75f198189238508d9ce6d5c3389e5961 to your computer and use it in GitHub Desktop.
join 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
rs.initiate( { | |
_id : "rs0", | |
members: [ | |
{ _id: 0, host: "mongo-0:27017" }, | |
{ _id: 1, host: "mongo-1:27017" } | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment