You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Free to you to change the url of mongoDB instance if instances are located on different servers.
We need to initiate it:
rs.initiate(cfg)
Then, you will see a success message like:
{
"info" : "Config now saved locally. Should come online in about a minute.",
"ok" : 1
}
After few seconds, you will see servers instance for checking master and slaves replicate set.
On the client mongo, push the 'Enter' button, you will see the prompt changing:
rep:PRIMARY>
If this appended, that is to say your replication set is Done.