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.

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

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

Most like simply because it is keyFile rather than keyfile. Always check with the documentation. See

Ahhh. My bad. Thanks for catching it quickly.

capital F in “keyFile” is missing…

  keyFile: /var/mongodb/pki/node1/keyfile

sorry I didnt realise someone had answered. Why is this thread still open if its supposed to close after 5 days. Its been two months since the last comment?

1 Like

Hey @Daniel_Lister,

The post gets closed after 5 days when the response is marked as the solution.


1 Like