/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