The error comes from the fact that you are passing in an executable file and not a replicaset configuration.

I would recommend reading the mongos documentation, especially the part talking about the --configdb parameter to better understand what’s going on. If you are not trying to run a sharded cluster, then there is no need to run the mongos command.

You might want to look at taking M103 - Basic Cluster Administration as well. That course should give some overview of sharded clusters and how to use the mongos command.

1 Like