Skip to content

Instantly share code, notes, and snippets.

View manoharvare's full-sized avatar

Manohar Vare manoharvare

View GitHub Profile
@manoharvare
manoharvare / start-mongo-replset.sh
Created April 1, 2021 16:52 — forked from leetreveil/start-mongo-replset.sh
Shell scripts to create a mongodb replica set and sharded cluster locally
#!/bin/bash
# shell script to create a simple mongodb replica set (tested on osx)
set -e
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
default=$(tput sgr0)