Skip to content

MongoDB

MongoDB is a NoSQL database system which stores data in the form of BSON documents. MongoDB uses JSON-like documents with schemata.

Index

Refer the links below to get help on following topics.

Running Service

# Run mongod
$ mongod

Begin using MongoDB

$ mongo --host 127.0.0.1:27017
When you run mongo without any arguments, the mongo shell will attempt to connect to the MongoDB instance running on the
localhost interface on port 27017
--host command line option to specify the localhost address and port that the mongod listens on

User's Home should have a file .mongorc.js
mongo interprets the content of .mongorc.js before displaying the prompt for the first time.

References