Created
July 19, 2018 17:05
-
-
Save ogavrisevs/db94720666f277c33407a6ec469e2feb to your computer and use it in GitHub Desktop.
DEploy monga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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