미니옵빠의 code stubs
MongoDB configuration file sample 본문
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