Difference between revisions of "Mongodb"

From John Freier
Jump to: navigation, search
(Created page with " == Description == MongoDB is a document JSON database. == Start Up - Command == To start mongodb for development or other mongod --dbpath /home/test/mongo == Start Up -...")
 
(No difference)

Latest revision as of 14:51, 20 June 2019

Description

MongoDB is a document JSON database.


Start Up - Command

To start mongodb for development or other

 mongod --dbpath /home/test/mongo


Start Up - Service

To start the mongo database up as a service

 service mongod start

To edit the config for mongo service look here.

 /etc/mongod.conf


To connect to a MongoDB

To connect to an existing mongodb

 mongo localhost:27017