2013-09-17 22:04:50 +02:00
|
|
|
# mongod.conf
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
# for documentation of all options, see:
|
|
|
|
# http://docs.mongodb.org/manual/reference/configuration-options/
|
2010-03-16 15:05:32 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
# where to write logging data.
|
|
|
|
systemLog:
|
|
|
|
destination: file
|
|
|
|
logAppend: true
|
|
|
|
path: /var/log/mongodb/mongod.log
|
2010-04-30 20:47:48 +02:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
# Where and how to store data.
|
|
|
|
storage:
|
|
|
|
dbPath: /var/lib/mongo
|
|
|
|
journal:
|
|
|
|
enabled: true
|
|
|
|
# engine:
|
|
|
|
# mmapv1:
|
|
|
|
# wiredTiger:
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
# how the process runs
|
|
|
|
processManagement:
|
|
|
|
fork: true # fork and run in background
|
|
|
|
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
# network interfaces
|
|
|
|
net:
|
|
|
|
port: 27017
|
|
|
|
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2012-02-17 18:31:04 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
#security:
|
2013-03-29 19:18:17 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
#operationProfiling:
|
2011-03-17 17:08:08 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
#replication:
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
#sharding:
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
## Enterprise-Only Options
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
#auditLog:
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2015-04-09 22:01:34 +02:00
|
|
|
#snmp:
|