基本配置如下:
systemLog:
destination: file
path: "/home/admin/mongodb3/logs/shard1.log"
logAppend: true
quite:true
processManagement:
fork: true
pidFilePath:"/home/admin/mongodb3/data/shard1.pid"
net:
port:27017
maxIncomingConnections:65535
wireObjectCheck:true
http:
enabled: false
JSONPEnabled: false
RESTInterfaceEnabled: false
storage:
dbPath:"/home/admin/mongodb3/data/shard1/"
journal:
enabled:true
directoryPerDB:true
engine:wiredTiger
wiredTiger:
engineConfig:
cacheSizeGB: 2
journalCompressor: snappy
directoryForIndexes:true
collectionConfig:
blockCompressor: snappy
indexConfig:
prefixCompression:true
operationProfiling: