2017-10-06 22:58:04 +01:00
|
|
|
# mongod
|
|
|
|
|
2017-10-07 08:35:45 +01:00
|
|
|
> The MongoDB database server.
|
2017-10-06 22:58:04 +01:00
|
|
|
|
2017-10-07 08:34:24 +01:00
|
|
|
- Specify a config file:
|
2017-10-06 22:58:04 +01:00
|
|
|
|
2017-10-07 08:34:24 +01:00
|
|
|
`mongod --config {{filename}}`
|
2017-10-06 22:58:04 +01:00
|
|
|
|
2017-10-07 08:34:24 +01:00
|
|
|
- Specify the port to listen on:
|
2017-10-06 22:58:04 +01:00
|
|
|
|
2017-10-07 08:34:24 +01:00
|
|
|
`mongod --port {{port}}`
|
2017-10-06 22:58:04 +01:00
|
|
|
|
2017-10-07 08:34:24 +01:00
|
|
|
- Specify database profiling level. 0 is off, 1 is only slow operations, 2 is all:
|
2017-10-06 22:58:04 +01:00
|
|
|
|
2017-10-07 08:34:24 +01:00
|
|
|
`mongod --profile {{0|1|2}}`
|