mongodb - can't initiate replica set with default configuration
问题 I am following this tutorial to deploy a replica set. When I execute rs.initiate() I get the error "all members and seeds must be reachable to initiate set" which is strange given that the only member is localhost. 回答1: I had the same error. In my case the helped me: cfg=rs.conf() rs.reconfig(cfg,{force:true}) 回答2: You cannot initiate a replica set with just one member (where do you replicate data ?!). The tutorial tells you that three active mongod instances are needed. Requirements: Three