Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongo default config

I have Windows 8 developer computer and mongodb for win32.
Mongo uses \data\db dbpath for data by default.

I may set dbpath in config file, but I have to add -f \path\to\config to mongo or mongod commands.

How can I set default config file for mongo and mongod?

like image 452
Dmitry Avatar asked Jan 22 '13 07:01

Dmitry


1 Answers

As far as I know, there is no default location for a configuration file. Not on linux either. The packaged installers create a startup script that starts the daemon with the -f option.

You could create a service under windows that does just that for you, or run the daemon from a .bat-file.

like image 132
akaIDIOT Avatar answered Nov 08 '22 02:11

akaIDIOT