I am new to mongoDB and am trying to use the following.
res = rs.initiate(
{
"_id" : "ireland",
"members" : [
{ _id:0,host:myName+".local:"+"27000" },
{ _id:1,host:myName+".local:"+"27001" },
{ _id:2,host:myName+".local:"+"27002" }
]
}
);
I then get the following error message.
{
"ok" : 0,
"errmsg" : "This node was not started with the replSet option",
"code" : 76,
"codeName" : "NoReplicationEnabled"
} I have looked around online with no luck. I found some similar questions on here but none of the answers helped.