223
edits
| Line 127: | Line 127: | ||
Open with a text editor mongod.cfg file located in mongodb folder, default : "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg". | Open with a text editor mongod.cfg file located in mongodb folder, default : "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg". | ||
We need to enable zstd compression, find wiredTiger block and edit it as followed : | We need to enable zstd compression, find wiredTiger block and edit it as followed :<br> | ||
< | |||
storage: | <pre>storage: | ||
dbPath: C:\Program Files\MongoDB\Server\6.0\data | |||
journal: | journal: | ||
enabled: true | enabled: true | ||
| Line 137: | Line 137: | ||
wiredTiger: | wiredTiger: | ||
collectionConfig: | collectionConfig: | ||
blockCompressor: zstd | blockCompressor: zstd</pre> | ||
</ | |||
Configure the net part as needed, example with port 27017 and allowing any external IP address :< | Configure the net part as needed, example with port 27017 and allowing any external IP address :<pre> | ||
# network interfaces | # network interfaces | ||
net: | net: | ||
| Line 146: | Line 146: | ||
bindIpAll: true | bindIpAll: true | ||
# bindIp: 127.0.0.1" | # bindIp: 127.0.0.1" | ||
</ | </pre> | ||
If you want to secure the connection to MongoDB, only allow know IP address. | If you want to secure the connection to MongoDB, only allow know IP address. | ||
| Line 221: | Line 221: | ||
We need to enable zstd compression, find wiredTiger block and edit it as followed : | We need to enable zstd compression, find wiredTiger block and edit it as followed : | ||
< | <pre> | ||
storage: | storage: | ||
| Line 231: | Line 231: | ||
collectionConfig: | collectionConfig: | ||
blockCompressor: zstd | blockCompressor: zstd | ||
</ | </pre> | ||
Configure the net part as needed, example with port 27017 and allowing any external IP address :< | Configure the net part as needed, example with port 27017 and allowing any external IP address :<pre> | ||
# network interfaces | # network interfaces | ||
net: | net: | ||
| Line 239: | Line 239: | ||
bindIpAll: true | bindIpAll: true | ||
# bindIp: 127.0.0.1" | # bindIp: 127.0.0.1" | ||
</ | </pre> | ||
Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/ | Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/ | ||