I want to turn on the replication in monga. So when I tried to use rs.initiate I get the following errorrs.initiate()
{
"ok" : 0,
"errmsg" : "This node was not started with the replSet option",
"code" : 76,
"codeName" : "NoReplicationEnabled"
}
I am new to this so I don't know how to correct it. I am following these guidelines https://blog.jixee.me/how-to-use-mongo-connector-with-elasticsearch/
Refer official doc deploy-replica-set to setup mongo replica set.