caden
asked Aug 31 2019
edited Aug 31 2019
Answer
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.
caden
Apr 06 2025
Thanks it solved..
linuxhelp
asked Aug 31 2019
edited Aug 31 2019
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 normallyHow to fix this issue.
Thanks In Advance.