mongodb配置文件

2021-12-27
systemLog:
  destination: file
  logAppend: true
  path: /data/mongodb/master/log/config.log
  logRotate: rename
  timeStampFormat: ctime
# Where and how to store data.
storage:
  dbPath: /data/mongodb/master/data
  directoryPerDB: true
  wiredTiger:
    engineConfig:
      cacheSizeGB: 0.25
  journal:
    enabled: true
# how the process runs
processManagement:
  fork: true
  pidFilePath: /data/mongodb/master/log/configsvr.pid
 
# network interfaces
net:
  port: 27117
  bindIp: 0.0.0.0
 
#operationProfiling:
replication:
    replSetName: bt_main   
security:
  authorization: disabled
  javascriptEnabled: false

 

{/if}