Chapter 3 Internal Authentication - config file

I believe I did the syntax for config file correctly…but its says unrecognized option. What am I doing wrong ( for some reason , I cant upload the jpeg screenshot. throws error that you cant embed media in the post…anyway) below is the error.

security:
keyfile: /var/mongodb/pki/node1/keyfile

user@M150# mongod -f mongod_1.conf
Unrecognized option: security.keyfile
try ‘mongod --help’ for more information
user@M150#

Most like simply because it is keyFile rather than keyfile. Always check with the documentation. See https://docs.mongodb.com/manual/reference/configuration-options/#mongodb-setting-security.keyFile

Ahhh. My bad. Thanks for catching it quickly.