Skip to content

Instantly share code, notes, and snippets.

@stekhn
Created October 16, 2015 13:17
Show Gist options
  • Save stekhn/f4cc8b1a13fac1d46f98 to your computer and use it in GitHub Desktop.
Save stekhn/f4cc8b1a13fac1d46f98 to your computer and use it in GitHub Desktop.
Example YAML configuration for a MongoDB 3.0 database on CentOS
processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod.pid
net:
bindIp: 127.0.0.1
port: 27017
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
systemLog:
destination: file
path: /var/log/mongodb/mongod.log
logAppend: true
security:
authorization: enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment