Skip to content

Instantly share code, notes, and snippets.

View SychovOleh's full-sized avatar

Oleh Sychov SychovOleh

  • Krakow, Poland
  • 21:17 (UTC +01:00)
View GitHub Profile
@SychovOleh
SychovOleh / start-mongo-replset.sh
Created December 12, 2020 16:04 — 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 -euo pipefail
base_path="/System/Volumes/Data/data"
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)