When I am using setParameter in mongod config, I start mongod with error:
Unrecognized option: setParameter = enableLocalhostAuthBypass=1
How can I use setParameter from config file ?
P/S: I am using YAML config file format.
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.Sign up to join this community
Here's a working example that I just tested using 2.6.6 - I specified two parameters just to show how it is done for reference:
storage: dbPath: "/data/db/test" systemLog: destination: file path: "/data/db/test/mongodb.log" processManagement: fork: true setParameter: enableLocalhostAuthBypass: 1 enableTestCommands: 1