Skip to content

Instantly share code, notes, and snippets.

@ftsanjuan
Created October 10, 2014 18:58
Show Gist options
  • Save ftsanjuan/4274dff307b4151b7797 to your computer and use it in GitHub Desktop.
Save ftsanjuan/4274dff307b4151b7797 to your computer and use it in GitHub Desktop.
A MongoDB config file in YAML format for installations on Mac OSX using Homebrew. Start up mongo daemon process with: mongod --config path/to/mongo.conf
# daemonize by default
processManagement:
fork: true
systemLog:
destination: file
path: "/usr/local/var/log/mongodb/mongo.log"
logAppend: true
# Only accept local connections
net:
bindIp: 127.0.0.1
# Store data in /usr/local/var/mongodb instead of the default /data/db
storage:
dbPath: "/usr/local/var/mongodb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment