미니옵빠의 code stubs

MongoDB configuration file sample 본문

Database/MongoDB

MongoDB configuration file sample

미니옵빠 2018. 3. 13. 20:32



mongod.conf


systemLog:

   destination: file

   path: "/myhome/logs/mongodb/mongod.log"

   logAppend: true

storage:

   dbPath: "/myhome/apps/mongodb/data/db"

   journal:

      enabled: true

processManagement:

   fork: true

net:

   bindIp: 0.0.0.0

   port: 27017

setParameter:

   enableLocalhostAuthBypass: false



실행은 이런 식으로


 ./mongod --config mongod.conf



ref: https://docs.mongodb.com/manual/reference/configuration-options/index.html