Skip to content

MongoDB

GradedJestRisk edited this page Oct 20, 2024 · 1 revision

General

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
Directories:
  • conf: /etc/mongod.conf, options here
  • data: /var/lib/mongodb
  • logs: /var/log/mongodb

Clone this wiki locally