Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create a configuration File For MongoDB

I have installed mongodb for mac os through 10gen and I have gone through the documentation to do so. Everything seems fine apart from the configuration file. I can not see it in /etc/mongod.config. Do I have to manually create this config file? And if so how can I go about it?

cheers

like image 854
Rob Schneider Avatar asked Jul 22 '12 11:07

Rob Schneider


People also ask

What is configuration file in MongoDB?

A MongoDB configuration file can be used to configure mongod and mongos instances at startup. The MongoDB configuration file contains settings that are equivalent to the command-line options mongod and mongos.


1 Answers

The default path for brew installed mongodb on Mac OS X is /usr/local/etc/mongod.conf

like image 185
Addison Avatar answered Sep 22 '22 11:09

Addison