I could see that the logs folder from /var/log was deleted and this caused the db to shut down.
The below steps resolved the issue -
- switch to root user “sudo su”
- cd /var/log/
- mkdir mongodb
- chown -R mongod:mongod mongodb
- systemctl start mongod.service

1 Like