# Default YAML Configuration file for RPM Packaging
|
# Replacing legacy mongod.conf format
|
# See http://docs.mongodb.org/manual/reference/configuration-options/
|
|
# Specify where and how to log
|
# Leave at default verbosity (0)
|
|
systemLog:
|
destination: file
|
path: "/var/log/mongodb/mongodb.log"
|
logAppend: true
|
# verbosity: 0
|
|
# fork and run in background
|
# location of pidfile
|
|
processManagement:
|
fork: true
|
pidFilePath: "/var/run/mongodb/mongod.pid"
|
|
# Listen to local interface only. Comment out to listen on all interfaces.
|
# HTTP interface is disabled by default
|
|
net:
|
bindIp: 127.0.0.1
|
port: 27017
|
http:
|
enabled: false
|
|
# Storage sets the data location
|
# Defaults enable journaling, pre-allocate, no quotas
|
# Default .ns file size is 16 (MiB)
|
|
storage:
|
dbPath: "/var/lib/mongo"
|
# preallocDataFiles: false
|
# nsSize: <size>
|
# journal:
|
# enabled: false
|
# quota:
|
# enforced: true
|
|
# Authorization is off by default
|
# Disabling javascript will result in greatly limited functionality
|
|
security:
|
# keyFile: "/path/to/secure/keyfile"
|
authorization: disabled
|
# javascriptEnabled: false
|
|
# Sample parameters
|
#setParameter:
|
# notablescan: 1
|
# traceExceptions: 1
|
|
# Replication Options, uncomment and set appropriately for set member
|
|
#replication:
|
# replSetName: "setName"
|
# oplogSizeMB: 1024
|
|
# NOTES:
|
#
|
# Object check is now on by default
|
# diaglog has been deprecated
|
# nohints, cpu=true are not available in YAML format
|