2021-08-13 18:53:18 +08:00
|
|
|
# mongod.conf
|
|
|
|
|
|
|
|
# for documentation of all options, see:
|
|
|
|
# http://docs.mongodb.org/manual/reference/configuration-options/
|
|
|
|
|
|
|
|
storage:
|
|
|
|
dbPath: /mnt/mongo-ramdisk
|
|
|
|
journal:
|
|
|
|
enabled: true
|
|
|
|
wiredTiger:
|
|
|
|
engineConfig:
|
2021-10-26 04:11:24 +08:00
|
|
|
cacheSizeGB: 1
|
2021-08-13 18:53:18 +08:00
|
|
|
journalCompressor: none
|
|
|
|
directoryForIndexes: true
|
|
|
|
collectionConfig:
|
|
|
|
blockCompressor: none
|
|
|
|
indexConfig:
|
|
|
|
prefixCompression: false
|
|
|
|
|
|
|
|
systemLog:
|
|
|
|
destination: file
|
|
|
|
logAppend: true
|
|
|
|
path: /var/log/mongodb/mongod.log
|
|
|
|
|
|
|
|
net:
|
|
|
|
port: 27017
|
|
|
|
bindIp: 127.0.1.1
|
|
|
|
|
|
|
|
|
|
|
|
replication:
|
|
|
|
replSetName: rs0
|
|
|
|
|
2021-10-26 04:11:24 +08:00
|
|
|
setParameter:
|
|
|
|
diagnosticDataCollectionEnabled: false
|
2021-12-03 06:13:36 +08:00
|
|
|
|
|
|
|
security:
|
|
|
|
javascriptEnabled: false
|
|
|
|
|
|
|
|
|