Created
May 26, 2011 17:50
-
-
Save lucasrenan/993620 to your computer and use it in GitHub Desktop.
tutorial autenticação mongodb
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
tutorial de instalação do mongodb no ubuntu (atual 2.0.6): | |
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linux/ | |
conectar no mongo: | |
$ mongo | |
no console do mongo: | |
use database_name; | |
db.addUser("user", "password"); | |
editar arquivo de configuração do mongo: | |
$ sudo vi /etc/mongodb.conf | |
Descomentar a linha: | |
#auth = true | |
reiniciar o mongo: | |
$ sudo service mongodb restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment