Learning Activity: Big Bank Database Authentication

Hi Experts

once i shutdown the instance using the db.shutdownServer() command.
I reconfigured the mongod.conf on the IDE. and added the “security” lines.

now when i go to start the mongos -f mongod.conf
I am getting an error for “Unrecognized option: storage.dbPath”

storage:
  dbPath: /var/mongodb/db
net:
  bindIp: localhost
  port: 27000
systemLog:
  destination: file
  path: /var/mongodb/logs/mongod.log
  logAppend: true
processManagement:
  fork: true
security:
  authorization: enabled

Pls help

Hi @Sudheer_Pai,

Welcome to the MongoDB Community forums :sparkles:

I suspect you are typing a wrong command

The correct one is mongod instead of mongos

mongod -f mongod.conf

I hope it helps!

In case you have any further questions or concerns, please feel free to reach out to us!

Thanks,
Kushagra

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.