It represents code exited on line number 14 from mongod.conf file By default, mongod does not have permission to /tmp/mongod27017.sock Steps to fix it: give command chown mongod:mongod /tmp/<your_sock> 2. delete the /tmp/mongod-17.lock 3. sudo systemctl restart mongod 4. Check the MongoDB status: sudo service mongod status Now mongodb will be working Note: Kindly create access list, while working on mongodb, or else you will be receiving warnings