INI格式

  1. bind_ip = 0.0.0.0
  2. port = 27013
  3. dbpath = /data/disease/database/mongodb/pubmed/db
  4. logpath = /data/disease/database/mongodb/pubmed/mongod.log
  5. fork = true
  6. wiredTigerCacheSizeGB = 8

YAML格式

  1. systemLog:
  2. path: /data/www/test/rs01/mongodb.log
  3. destination: file
  4. storage:
  5. dbPath: /data/www/test/rs01
  6. journal:
  7. enabled: true
  8. replication:
  9. replSetName: myset
  10. net:
  11. bindIp: 127.0.0.1
  12. port: 27018
  13. processManagement:
  14. fork: true
  15. pidFilePath: /data/www/test/rs01/mongod.pid