tldr/pages.zh/common/mongod.md

17 lines
386 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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