Show/Hide Toolbars

MongoDB Notes

Navigation: MongoDB Authentication

Basic mongod Configuration File

Scroll Prev Top Next More

 

The file below is a basic configuration file for mongod.  The file can be used in the following command:

 

mongod -f cf.yaml

 

where cf.yaml is that name given to the configuration file.

 

Configuration File

 

systemLog:

  destination: file

  path:  /home/vagrant/data/r0/mongodb.log

storage:

  dbPath: /home/vagrant/data/r0 

processManagement:

  fork: true

net:

  bindIp: mongodb.waysysweb.us.com

  port: 31210

replication:

   replSetName: repl