tldr/pages/common/mongod.md

17 lines
353 B
Markdown
Raw Normal View History

2017-10-07 00:58:04 +03:00
# mongod
2017-10-07 10:35:45 +03:00
> The MongoDB database server.
2019-06-04 12:25:15 +03:00
> More information: <https://docs.mongodb.com/manual/reference/program/mongod>.
2017-10-07 00:58:04 +03:00
2017-10-07 10:34:24 +03:00
- Specify a config file:
2017-10-07 00:58:04 +03:00
2017-10-07 10:34:24 +03:00
`mongod --config {{filename}}`
2017-10-07 00:58:04 +03:00
2017-10-07 10:34:24 +03:00
- Specify the port to listen on:
2017-10-07 00:58:04 +03:00
2017-10-07 10:34:24 +03:00
`mongod --port {{port}}`
2017-10-07 00:58:04 +03:00
2017-10-07 10:34:24 +03:00
- Specify database profiling level. 0 is off, 1 is only slow operations, 2 is all:
2017-10-07 00:58:04 +03:00
2017-10-07 10:34:24 +03:00
`mongod --profile {{0|1|2}}`