Skip to content

Instantly share code, notes, and snippets.

View Maria-UET's full-sized avatar
:octocat:
Focusing

Maria Shaukat Maria-UET

:octocat:
Focusing
  • Oklahoma-USA
View GitHub Profile
#!/bin/bash
######## Run this bash script on ONE replica set node to initiate the Mongodb replica set #########
# HOWTO:
# System recommendation : Ubuntu 16.04
# Download the script on your master/primary replica set node
# Open in bash and make it executable with command: chmod +x replicaset_initiate.sh
# Run with command: sudo ./replicaset_initiate.sh
@Maria-UET
Maria-UET / mongo_replica_config.sh
Last active October 23, 2022 12:41
Setup MongoDB replica set with three nodes
#!/bin/bash
######## Run this bash script on EACH replica set node to configure a Mongodb replica set #########
# HOWTO:
# System recommendation : Ubuntu 16.04
# Download the script on each system of the replica set
# Open in bash and make it executable with command: chmod +x mongo_replica_config.sh
# Run with command: sudo ./mongo_replica_config.sh
@Maria-UET
Maria-UET / mongodb_install.sh
Last active December 26, 2023 09:45
One-click Install and Configure MongoDB on Ubuntu
#!/bin/bash
######## Run this bash script with to install Mongodb on your system ##########
# HOWTO:
# System recommendation : Ubuntu 16.04
# Download the script
# Open in bash and make it executable with command: chmod +x mongodb_install.sh
# Run with command: sudo ./mongodb_install.sh