System Grab Bag

View all TLDR pages from common (or from all pages)

mongod

The MongoDB database server. More information: https://docs.mongodb.com/manual/reference/program/mongod.
  • Specify the storage directory (default: /data/db on Linux and MacOS, C:\data\db on Windows):
    mongod --dbpath {{path/to/directory}}
  • Specify a config file:
    mongod --config {{path/to/file}}
  • Specify the port to listen on (default: 27017):
    mongod --port {{port}}
  • Specify the database profiling level. 0 is off, 1 is only slow operations, 2 is all (default: 0):
    mongod --profile {{0|1|2}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.