mongoConf.yml
net:
bindIp: 127.0.0.1
port: 8888
storage:
dbPath: /Users/Shared/data/db
Execute below command to start mongodb server with the configuration specified in mongoConf file.
mongod --config {PATH TO mongoCong.yml FILE}
Refer below link to know more details about different configuration options.
https://docs.mongodb.com/manual/reference/configuration-options/
No comments:
Post a Comment