# mongod.confmongodb
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/it
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /data/mongolog/mongod.logio
# mongod.confList
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/file
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /data/mongolog/mongod.lognetwork
# Where and how to store data.
storage:
dbPath: /data/mongodata
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:map
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /data/mongodb/mongod.pid # location of pidfile
timeZoneInfo: /usr/share/zoneinfoim
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0 # Listen to local interface only, comment to listen on all interfaces.db
#開啓認證di
security:
authorization: enabled
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp: