LinuxCommandLibrary

mongod

mongod

TLDR

Specify a config file

$ mongod --config [path/to/file]
copy


Specify the port to listen on
$ mongod --port [port]
copy


Specify database profiling level. 0 is off, 1 is only slow operations, 2 is all
$ mongod --profile [0|1|2]
copy

Copied to clipboard