Skip to content

Instantly share code, notes, and snippets.

@poc7667
Last active November 25, 2015 02:43
Show Gist options
  • Save poc7667/628a8a467d6dcd704b29 to your computer and use it in GitHub Desktop.
Save poc7667/628a8a467d6dcd704b29 to your computer and use it in GitHub Desktop.
database setting

mount your external disk to /workspace,

and create an folde for storing DB's data, and set the owner to mongodb

   sudo mkdir /workspace/mongo_store
   sudo chown -R mongodb:mongodb mongo_store
systemLog:
destination: file
path: "/var/log/mongodb/mongodb.log"
quiet: false
logAppend: true
net:
port: 27017
bindIp: 0.0.0.0
storage:
dbPath: "/workspace/mongo_store"
engine: wiredTiger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment