Created
July 18, 2020 08:17
-
-
Save jovertical/c45396d0aa89fddaa5a24df97af8e5e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env bash | |
| echo "Starting rs0" | |
| mongod --replSet rs0 --port 27017 --bind_ip localhost --dbpath /Users/jovert/mongodb/rs0-0 --oplogSize 128 > /dev/null 2>&1 & | |
| echo "Starting rs1" | |
| mongod --replSet rs0 --port 27018 --bind_ip localhost --dbpath /Users/jovert/mongodb/rs0-1 --oplogSize 128 > /dev/null 2>&1 & | |
| echo "Starting rs2" | |
| mongod --replSet rs0 --port 27019 --bind_ip localhost --dbpath /Users/jovert/mongodb/rs0-2 --oplogSize 128 > /dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment