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
?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With