mongodb.conf
S2B2C 白洞版 · mongodb.conf
# for documentation of all options, see:# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.storage: dbPath: /data/db# engine:# wiredTiger:
# where to write logging data.systemLog: logAppend: true destination: file logRotate: reopen path: "/var/log/mongodb/mongod.log"# network interfacesnet: port: 27017 # 0.0.0.0代表可以远程访问 bindIp: 0.0.0.0
# how the process runsprocessManagement: timeZoneInfo: /usr/share/zoneinfo
security: # 打开验证登录 authorization: enabled#慢查询日志operationProfiling: mode: slowOp slowOpThresholdMs: 100