/etc/mongod.conf
security: enableEncryption: true encryptionKeyFile: /mongo/keys/mongod.key
/mongo/keys
mkdir /mongo/keys chown mongod:mongod /mongo/keys/
openssl rand -base64 32 > /mongo/keys/mongod.key
chmod 600 /mongo/keys/mongod.key chown mongod:mongod /mongo/keys/mongod.key
service mongod status service mongod stop
cd /mongo/data rm -fr /mongo/data/*
service mongod status service mongod stop service mongod start
view /mongo/log/mongod.log
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.