I am running Mongo DB version 2.6 on Windows Server 2012. I am having problems setting up a YAML configuration file for security and authorization. When I have the following configuration file, I get the error message "Unrecognized option: security". What is wrong with my configuration?
mongod_test.conf:
security:
authorization: enabled
authenticationMechanisms: MONGODB-CR
storage:
dbPath: F:\MongoData
Command line:
mongod.exe --config mongod_test.conf
I added spaces to my file and fixed part of the problem. With the updated configuration on top, the current error I get is:
c:\MongoDBFolder\bin>mongod.exe --config mongod_test.conf
Unrecognized option: security.authenticationMechanisms
try 'mongod.exe --help' for more information
source
share