mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 16:02:08 +02:00
16 lines
382 B
Markdown
16 lines
382 B
Markdown
# mongod
|
|
|
|
> MongoDB 数据库服务器。
|
|
> 更多信息:<https://docs.mongodb.com/manual/reference/program/mongod>.
|
|
|
|
- 指定配置文件:
|
|
|
|
`mongod --config {{filename}}`
|
|
|
|
- 指定要监听的端口:
|
|
|
|
`mongod --port {{port}}`
|
|
|
|
- 指定数据库分析级别,用于性能调优分析。 0 - 关闭,1 - 仅是记录慢速操作,2 - 全部:
|
|
|
|
`mongod --profile {{0|1|2}}`
|