- Log into mongodb1
- Configure the replicaset (with a secondary and arbiter)
rs.initiate()
rs.add('ip-internal-ip-of-mongodb2')
rs.addArb('ip-internal-ip-of-mongodb3')
| ssh -L 9000:localhost:8983 ubuntu@host | |
| # forwards remote port 8993 to local port of localhost:9000 as seen by host |
| some_cmd > some_file 2>&1 & |
| #!/usr/bin/env bash | |
| # | |
| # Ground Control CLI | |
| # Copyright Percolate Studio 2014 | |
| if [ $# -gt 0 ]; then | |
| ssh -t -x [email protected] gcontrol ${*:2} | |
| else | |
| echo "Ground Control CLI" | |
| echo "Usage: gcontrol.sh <app> [command] [arguments]" |