100
edits
Line 127: | Line 127: | ||
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 : | ||
<code> | <code> | ||
wiredTiger: | wiredTiger: | ||
Line 133: | Line 132: | ||
blockCompressor: zstd | blockCompressor: zstd | ||
</code> | </code> | ||
Configure the net part as needed, example with port 27017 and allowing any external IP address :<code> | Configure the net part as needed, example with port 27017 and allowing any external IP address :<code> | ||
# network interfaces | # network interfaces | ||
Line 141: | Line 141: | ||
</code> | </code> | ||
If you want to secure the connection to MongoDB, only allow know IP address. | |||
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/ | ||
Line 211: | Line 210: | ||
c. Configure MongoDB | c. Configure MongoDB | ||
Open with a text editor mongod.cfg file : /etc/mongod.conf | |||
We need to enable zstd compression, find wiredTiger block and edit it as followed : | |||
<code> | |||
wiredTiger: | |||
collectionConfig: | |||
blockCompressor: zstd | |||
</code> | |||
Configure the net part as needed, example with port 27017 and allowing any external IP address :<code> | |||
# network interfaces | |||
net: | |||
port: 27017 | |||
bindIpAll: true | |||
# bindIp: 127.0.0.1" | |||
</code> | |||
Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/ | |||
d. Enable MongoDB as a service | d. Enable MongoDB as a service |