how to exit from mongo shell code example Example: exit mongodb // In db shell use adim db.shutdownServer()