I am trying run a nodejs application. In order to do that I need to setup replica mongodb. I couldn’t understand what should I do where. I need step by step explanation like my IQ is around room tempratures.
So this is the ENV variable for DB
I am running this command and starting a replica mongodb
mongod --port 27021 --dbpath "/data" --replSet rs0
And this is the error message that I get
-> no primary found in replicaset or invalid replica set name
I have ip’s of 2 mongo db’s running
62.210.**.** mongo1 212.129.**.** mongo2