Mongo Database Installation on linux OS and configuration file option for startup
This is one of the best document database I am using since last six years . I started my journey with Mongo version 2.6 and now we reached version 4. If you have worked on any relational database before then this will be one of the easiest database to manage and administer .
Since I started using Mongo it has changed lot , Mongo team is making this database similar to Oracle.
As in Oracle we are using pfile ( parameter file ) here we are using configuration file which includes the basic parameter like db data path , port on which mongo db is listening this config file uses YAML format so be careful about spaces and tabs(not supported) while editing the config file .
Here I am giving some simple things to start with Mongo DB
Mongo DB installation .
Down load the mongo DB binary file as per your OS release . Simply unzip it after downloading to the directory you have created for it as an eg . /db/data/MongoInstanceName
Edit the configuration file and add all the parameters like
net :
port : 27017 (defauly port but you can use different port)
storage:
dbPath: /db/data/MongoInstanceName
journal:
enabled:true ==> This one is same like redo log of oracle , mongo will write ahead logging the changes to journal files.
engine: "wiredTiger"
wiredTiger:
processManagement:
fork: true ==> so will run the mongo process in background
security:
authorization: enabled ==> This is for secured login if enabled will ask username and password
systemLog:
destination: file
path: "/db/data/log/mongod.log"
That's it and you are ready to start using mongo db .