Files
tldr/pages.zh/common/mongod.md
2021-10-01 15:28:01 -03:00

17 lines
382 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mongod
> MongoDB 数据库服务器。
> 更多信息:<https://docs.mongodb.com/manual/reference/program/mongod>.
- 指定配置文件:
`mongod --config {{filename}}`
- 指定要监听的端口:
`mongod --port {{port}}`
- 指定数据库分析级别,用于性能调优分析。 0 - 关闭1 - 仅是记录慢速操作2 - 全部:
`mongod --profile {{0|1|2}}`