Details
-
Task
-
Resolution: Gone away
-
Major - P3
-
None
-
None
Description
Description
The MacOS install instructions for Homebrew omit some useful information:
- Homebrew includes a default config file and service definition:
To have launchd start mongodb now and restart at login:
brew services start mongodb
Or, if you don't want/need a background service you can just run:
mongod --config /usr/local/etc/mongod.conf
- There is no need to create /data/db/ if you start mongod using the service definition (recommended) or specify a config file path.
- The default dbPath in the homebrew config is /usr/local/var/mongodb
- The default log file in the homebrew config is /usr/local/var/log/mongodb/mongo.log