2013-09-17 22:04:50 +02:00
|
|
|
# mongod.conf
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
#where to log
|
2013-09-17 22:04:50 +02:00
|
|
|
logpath=/var/log/mongodb/mongod.log
|
2010-03-16 15:05:32 +01:00
|
|
|
|
2010-04-30 20:47:48 +02:00
|
|
|
logappend=true
|
|
|
|
|
2010-03-16 15:05:32 +01:00
|
|
|
# fork and run in background
|
2013-02-15 15:10:23 +01:00
|
|
|
fork=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2013-02-15 15:10:23 +01:00
|
|
|
#port=27017
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2014-03-04 19:08:57 +01:00
|
|
|
dbpath=/var/lib/mongo
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2012-02-17 18:31:04 +01:00
|
|
|
# location of pidfile
|
2013-02-15 15:10:23 +01:00
|
|
|
pidfilepath=/var/run/mongodb/mongod.pid
|
2012-02-17 18:31:04 +01:00
|
|
|
|
2013-03-29 19:18:17 +01:00
|
|
|
# Listen to local interface only. Comment out to listen on all interfaces.
|
2013-02-15 15:10:23 +01:00
|
|
|
bind_ip=127.0.0.1
|
2013-03-29 19:18:17 +01:00
|
|
|
|
2011-08-22 20:27:21 +02:00
|
|
|
# Disables write-ahead journaling
|
2013-02-15 15:10:23 +01:00
|
|
|
# nojournal=true
|
2011-03-17 17:08:08 +01:00
|
|
|
|
2009-12-03 20:20:35 +01:00
|
|
|
# Enables periodic logging of CPU utilization and I/O wait
|
2013-02-15 15:10:23 +01:00
|
|
|
#cpu=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Turn on/off security. Off is currently the default
|
2013-02-15 15:10:23 +01:00
|
|
|
#noauth=true
|
|
|
|
#auth=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Verbose logging output.
|
2013-02-15 15:10:23 +01:00
|
|
|
#verbose=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Inspect all client data for validity on receipt (useful for
|
|
|
|
# developing drivers)
|
2013-02-15 15:10:23 +01:00
|
|
|
#objcheck=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Enable db quota management
|
2013-02-15 15:10:23 +01:00
|
|
|
#quota=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Set oplogging level where n is
|
|
|
|
# 0=off (default)
|
|
|
|
# 1=W
|
|
|
|
# 2=R
|
|
|
|
# 3=both
|
|
|
|
# 7=W+some reads
|
2013-02-15 15:10:23 +01:00
|
|
|
#diaglog=0
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Ignore query hints
|
2013-02-15 15:10:23 +01:00
|
|
|
#nohints=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
2014-07-23 17:58:51 +02:00
|
|
|
# Enable the HTTP interface (Defaults to port 28017).
|
|
|
|
#httpinterface=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Turns off server-side scripting. This will result in greatly limited
|
|
|
|
# functionality
|
2013-02-15 15:10:23 +01:00
|
|
|
#noscripting=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Turns off table scans. Any query that would do a table scan fails.
|
2013-02-15 15:10:23 +01:00
|
|
|
#notablescan=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Disable data file preallocation.
|
2013-02-15 15:10:23 +01:00
|
|
|
#noprealloc=true
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Specify .ns file size for new databases.
|
2013-02-15 15:10:23 +01:00
|
|
|
# nssize=<size>
|
2009-12-03 20:20:35 +01:00
|
|
|
|
|
|
|
# Replication Options
|
|
|
|
|
2013-10-18 16:36:48 +02:00
|
|
|
# in replicated mongo databases, specify the replica set name here
|
|
|
|
#replSet=setname
|
|
|
|
# maximum size in megabytes for replication operation log
|
|
|
|
#oplogSize=1024
|
|
|
|
# path to a key file storing authentication info for connections
|
|
|
|
# between replica set members
|
|
|
|
#keyFile=/path/to/keyfile
|