Skip to content

Instantly share code, notes, and snippets.

@akbargumbira
Last active January 31, 2016 11:44
Show Gist options
  • Save akbargumbira/4de643db8da9fe242877 to your computer and use it in GitHub Desktop.
Save akbargumbira/4de643db8da9fe242877 to your computer and use it in GitHub Desktop.
Mongodb
The MongoDB instance stores its data files in /var/lib/mongodb and
its log files in /var/log/mongodb by default,
and runs using the mongodb user account.
You can specify alternate log and data file directories in /etc/mongod.conf.
See systemLog.path and storage.dbPath for additional information.
sudo service mongod start
sudo service mongod stop
sudo service mongod restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment