Skip to content

Instantly share code, notes, and snippets.

@nexus166
Created August 20, 2020 01:29
Show Gist options
  • Save nexus166/34c0357e75a49375caf2f1c4039afbb0 to your computer and use it in GitHub Desktop.
Save nexus166/34c0357e75a49375caf2f1c4039afbb0 to your computer and use it in GitHub Desktop.
cfg = rs.conf()
cfg.members[0]["host"] = "[insert_correct_hostname_or_ip]:27017"
rs.reconfig(cfg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment