0

Unrecognized option: security In MongoDB 4.0.11 On CentOS 7.6

Hello,When i am restarting my mongod service,it threw me an error like "unrecognised security option" when i have run the journalcrl -xe command.What is the possible way to resatrt the service of mongodb normally
How to fix this issue.

Thanks In Advance.

Mongodb Security Add a comment
caden
asked Aug 31 2019
edited Aug 31 2019

Answer

0

Make sure you have given the below format in th/etc/mongod.conf for security option as you have made an mistake in security option.
security:
authorization: 'enabled' -----> to enable authentication
authentication: 'disabled' -------> to disable the authentication

if you dont want to secure your MongoDb database,just comment this security directive in /etc/mongod.conf

Note:

Ensure there exists an white space between the authorization and 'enabled',only then the service of mongoDB will run successfully.

Comments
caden
May 02 2024
Thanks it solved..
Add a comment
linuxhelp
asked Aug 31 2019
edited Aug 31 2019
Post your Answer