Replica Set Error Code 76

后端 未结 2 2062
野的像风
野的像风 2021-01-28 17:28

In ref to mongo dba course trying to create replica set as asked shown by instructor in El Capitano (Single machine only), I get following error. I have three members:

2条回答
  •  臣服心动
    2021-01-28 17:41

    Make sure you have the replSetName name configured in /etc/mongod.conf

    replication:
      replSetName: "somename"
    

    Then restart your mongod.

    sudo service mongod stop
    sudo service mongod start
    sudo service mongod restart
    

提交回复
热议问题