Created
December 3, 2014 11:29
-
-
Save ondrek/10c1c4ceb3a4259c3c8b to your computer and use it in GitHub Desktop.
mongo
This file contains 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
# run mongodb | |
mkdir /root/mongodb | |
export LC_ALL=C | |
mongod --dbpath /root/mongodb --port 12345 | |
# create a new user | |
mongo | |
db.createUser('mongouser','mongopass'); | |
exit | |
# edit config | |
nano config/default.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment