Indexing mongodb data in solr

Currently I am tring to do real time indexing of mongo data in solr.

I am referring the below link:

I am using below system:

Windows 10,
solr 8.3.1
mongo 4.2.8

Starting MongoDB Server and create replica set using below command:

mongod --replSet rs0

Afert that In a new tab I try to start and initiate replica set,but I am getting error.

Please help me on that.
Thanks in advance!

Did you try adding the replSetName to your config file. And then you can reference the config file when you start your mongod process. mongod --config

You can add the replica set name under replication in your config file
replication:
replSetName: “rs0”

https://docs.mongodb.com/manual/tutorial/deploy-replica-set/