Skip to main content

The MongoDB database server.

# To specify a config file:
mongod --config filename

# To specify the port to listen on:
mongod --port port

# To specify database profiling level. 0 is off, 1 is only slow operations, 2 is all:
mongod --profile 0|1|2