mongod
The MongoDB database server. tldr-pages
On several platforms
Several platforms
Specify the storage directory (default: /data/db on Linux and macOS, C:\data\db on Windows)
mongod --dbpath path/to/directoryIdentifySpecify a configuration file
mongod --config path/to/fileIdentifySpecify the port to listen on (default: 27017)
mongod --port portIdentifySpecify the database profiling level. 0 is off, 1 is only slow operations, 2 is all (default: 0)
mongod --profile 0Identify