Lab:Configuration File Error

user@M103# cat mongod.conf
net:
port: 27000
security:
authorization: enabled
user@M103# mongod -f mongod.conf
Unrecognized option: net
try ‘mongod --help’ for more information
user@M103#

I’m getting the above error and I have no ideea how to fix it.

Hi @George_Petculescu, and welcome to the MongoDB Community forums. :wave:

Note that the config files must be properly formatted yaml. I can get the error you’re reporting if my file is not properly formatted.

Take a look at the Configuration File Options documentation page to see how to format the file.

2 Likes