Skip to content

Instantly share code, notes, and snippets.

@ogavrisevs
Created July 19, 2018 17:05
Show Gist options
  • Save ogavrisevs/db94720666f277c33407a6ec469e2feb to your computer and use it in GitHub Desktop.
Save ogavrisevs/db94720666f277c33407a6ec469e2feb to your computer and use it in GitHub Desktop.
DEploy monga
Setup mongadb instance
-----------------------
localhost$ mongo admin --username root --password hSFRP0Vf856R
cat ./bitnami_credentials
-> add 27017 port to SG
-> add monga user
db = db.getSiblingDB('reaction')
db.createUser( { user: "reactionUser", pwd: "reactionPwd", roles: [ "readWrite", "dbAdmin" ]} )
Install mongo (monga cli)
-------------------------
vim /etc/yum.repos.d/mongodb.repo
[mongodb] name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0 enabled=1
sudo yum install -y mongodb-org-shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment