¡Esta es una revisión vieja del documento!
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 $ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list $ sudo apt-get update $ sudo apt-get install mongodb-org
$ sudo start mongod
$ sudo stop mongod
$ mongo
A Mongo server contain multiple data bases. Data bases are collection containers and a collection is a documents container. Documents are equivalents to records.
Documents inside a collection can have different fields, they are stored as BSON objects and accessed as JSON objects as well.
A namespace in Mongo is the concatenation of database and collection names. For an example acme.users namespace, acme is the database name and users is the collection name. We could also have a collection called users.history, then the namespace would be acme.users.history.
By default you access to the test database.
db command.show dbs command.use newdb command.help to display help.show collections lists available collections.
You should edit /etc/mongodb.conf file and change the bind_ip and port values. These would be the values:
bind_ip = 0.0.0.0 port = 27017