MongoDB常用配置项目
systemLog:
destination: file
logAppend: true
path: /data/mongod/log/mongod-rs1.log
processManagement:
fork: true
pidFilePath: /data/mongod/log/mongod-rs1.pid
timeZoneInfo: /usr/share/zoneinfo
net:
port: 27018
bindIp: 0.0.0.0
maxIncomingConnections: 65535
security:
keyFile: /usr/local/mongodb/etc/mongodb.key
storage:
dbPath: /data/mongod/data
journal:
enabled: true
engine:wiredTiger
directoryPerDB: true
replication:
oplogSizeMB: 10000
replSetName: rs1
sharding:
clusterRole: shardsvr
[THE END]