-
Notifications
You must be signed in to change notification settings - Fork 1
MongoDB
GradedJestRisk edited this page Jan 23, 2020
·
4 revisions
Overview:
- install
- make service star on startup:
sudo systemctl enable mongod
- start:
sudo service mongod start
, on default port 27017 - status:
sudo service mongod status
- connect:
mongo
- enable monitoring:
db.enableFreeMonitoring()
- stop:
sudo service mongod stop
- conf:
/etc/mongod.conf
, options here - data:
/var/lib/mongodb
- logs:
/var/log/mongodb