配置文件初始化 配置文件# mongodb.confreplSet = myset 初始化rs.initiate({ _id : "myset", members :[ { _id : 0 , host: "127.0.0.1:27018"}, { _id : 1 , host: "127.0.0.1:27019"}, ] })rs.status() https://www.cnblogs.com/littleatp/p/8562842.html