Line 453:
Line 453:
I'll add more later, and try and make a full contrib in due course
I'll add more later, and try and make a full contrib in due course
+
+
===CentOS 7 notes===
+
+
Setup storage engine and replication for MongoDB (mandatory for versions > 1), and enable and start MongoDB and Rocket.Chat:
+
+
They still recommend mmapv1 but it is probably better to stick with the default WiredTiger. Here's how to change if required:
+
+
sed -i "s/^# engine:/ engine: mmapv1/" /etc/mongod.conf
+
+
You MUST initialise a replicaset so we must add this to the conf file:
+
+
sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf
+
+
Start Mongo
+
+
systemctl enable mongod && sudo systemctl start mongod
+
+
Initiate the set:
+
+
mongo --eval "printjson(rs.initiate())"