1

Job for mongod.service failed because the control process exited with error code

While i am configuring the mongod.conf security enable i cant able to start the service i am getting the following error

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

My mongodb version is 4.2

security:
  authorization: enabled
Mongodb Add a comment
jacob
asked Nov 30 2019
edited Nov 30 2019

Answer

1

Stop the service before enabling the security in the mongo Configuration file.
Navigate to the MongoDb configuration File and enable the security

security.authorization: enabled

Now start the service of mongoDB

Add a comment
linuxhelp
asked Nov 30 2019
Post your Answer