mongo*: update pages & add mongosh (#10558)

This commit is contained in:
Lena
2023-08-01 09:21:03 +02:00
committed by GitHub
parent 2be0b2e18d
commit cc5486d66e
3 changed files with 38 additions and 12 deletions

View File

@@ -3,14 +3,18 @@
> 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 config file:
`mongod --config {{path/to/file}}`
- Specify the port to listen on:
- Specify the port to listen on (default: 27017):
`mongod --port {{port}}`
- Specify database profiling level. 0 is off, 1 is only slow operations, 2 is all:
- Specify the database profiling level. 0 is off, 1 is only slow operations, 2 is all (default: 0):
`mongod --profile {{0|1|2}}`