Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details

i am on centos 7 when i trying to run sudo service mongod start i got an error like this

Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.

The first thing to do when you get an error message that says

is to see “systemctl status mongod.service” and “journalctl -xe” for details.

Even us, we cannot help you without the details.

1 Like

Any news on the details? If you were able to fix your issue by following the advice, please mark my post as the solution so that others follow your steps.

@Brijesh_Kalkani, please follow up on your post. Did you follow the tip I provided in my post? Did it help you find a solution? If so please mark it as the solution. This will help this forum to be efficient.

Hi,
you can see what are the errors, by typing in the shell:
systemctl status mongod.service
journactl -xe
tail -f /path/to/log_file/mongod.log

Regards