mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 18:53:36 +00:00
Update cheatsheets
This commit is contained in:
25
mongod
Normal file
25
mongod
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mongod
|
||||
|
||||
> The MongoDB database server.
|
||||
> More information: <https://docs.mongodb.com/manual/reference/program/mongod>.
|
||||
|
||||
- Specify the storage directory (default: `/data/db` on Linux and macOS, `C:\data\db` on Windows):
|
||||
|
||||
`mongod --dbpath {{path/to/directory}}`
|
||||
|
||||
- Specify a configuration file:
|
||||
|
||||
`mongod --config {{path/to/file}}`
|
||||
|
||||
- Specify the port to listen on (default: 27017):
|
||||
|
||||
`mongod --port {{port}}`
|
||||
|
||||
- Specify the database profiling level. 0 is off, 1 is only slow operations, 2 is all (default: 0):
|
||||
|
||||
`mongod --profile {{0|1|2}}`
|
||||
Reference in New Issue
Block a user