Exported on 19-Aug-2021 14:41:40
Parameters
1 - Push mongodb auth config files
The connection details have changed from the last step.
Login as user {Linux User} on node {Linux Node}
Deploy archive
MongoDB - Auth Config Files.zip
to remote path
files/
2 - List all database on Mongo host
Login as user {Linux User} on node {Linux Node}
echo 'db.adminCommand( { listDatabases: 1 } )' | mongo
4 - Enable Auth to mongo.conf file
Login as user {Linux User} on node {Linux Node}
sudo rm -rf /etc/mongod.conf
sudo cp files/mongod.conf /etc/mongod.conf
sudo service mongod restart