Skip to content

Instantly share code, notes, and snippets.

View graboskyc's full-sized avatar

Chris Grabosky graboskyc

View GitHub Profile
### Keybase proof
I hereby claim:
* I am graboskyc on github.
* I am graboskyc (https://keybase.io/graboskyc) on keybase.
* I have a public key ASArgt4YqTwNsd5oKnoWm80Ycxk3o50ygzC0Phh6i20nzQo
To claim this, I am signing this object:
@graboskyc
graboskyc / LiveMigrateCommands.md
Created February 15, 2020 19:18
Live Migrate Commands
  • Install MongoDB Enterprise Advanced 4.0 using the following commands:

    Purpose Command
    Add MongoDB Public Key wget -qO - https://www.mongodb.org/static/pgp/server-4.0.asc | sudo apt-key add -
    Add MongoDB EA Repo echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
    Update Apt Package Cache sudo apt-get update
    Install MongoDB EA 4.0.15 sudo apt-get install -y mongodb-enterprise=4.0.15 mongodb-enterprise-server=4.0.15 mongodb-enterprise-shell=4.0.15 mongodb-enterprise-mongos=4.0.15 mongodb-enterprise-tools=4.0.15
  • Edit the MongoDB Enterprise config file by running sudo vi /etc/mongod.etc update the binding, add it to a replica set, and enable username and password auth as shown below or in the sample config.

@graboskyc
graboskyc / mongomirrorCommand.md
Created February 16, 2020 01:01
mongomirrorCommand
  • Install MongoDB Enterprise Advanced 4.0 using the following commands:

    Purpose Command
    Add MongoDB Public Key wget -qO - https://www.mongodb.org/static/pgp/server-4.0.asc | sudo apt-key add -
    Add MongoDB EA Repo echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
    Update Apt Package Cache sudo apt-get update
    Install MongoDB EA 4.0.15 sudo apt-get install -y mongodb-enterprise=4.0.15 mongodb-enterprise-server=4.0.15 mongodb-enterprise-shell=4.0.15 mongodb-enterprise-mongos=4.0.15 mongodb-enterprise-tools=4.0.15
  • Edit the MongoDB Enterprise config file by running sudo vi /etc/mongod.etc update the binding, add it to a replica set, and enable username and password auth as shown below or in the sample config.