Skip to content

Instantly share code, notes, and snippets.

@jovertical
Created July 18, 2020 08:17
Show Gist options
  • Select an option

  • Save jovertical/c45396d0aa89fddaa5a24df97af8e5e5 to your computer and use it in GitHub Desktop.

Select an option

Save jovertical/c45396d0aa89fddaa5a24df97af8e5e5 to your computer and use it in GitHub Desktop.
#!/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