Set up a sharded cluster: Unrecognized option: sharding.configDB

when I run:
mongod -f mongos.conf.

vagrant@m103:~$ mongod -f mongos.conf
Unrecognized option: sharding.configDB
try ‘mongod --help’ for more information

Please check your mongos config file and configDB parameter values
Make sure indentation is proper

I tried to retype it and copy from the lecture. Both get the same problem.

mongos

I tried “mongod --help”, only got two options for sharding.
sharding

Ensure mongos is started as below

mongos -f mongos.conf

2 Likes