# MongoDB副本集簡潔
* * * * *
--: 作者:Mick
時間:2018年10月23日
* * * * *
### 副本集配置
#### 主節點初始化
> rs.initiate() //初始化方法
{
"info2" : "no configuration specified. Using a default configuration for the set", //代表成功
"me" : "192.168.154.128:27717",
"ok" : 1,
"operationTime" : Timestamp(1532137496, 1),
"$clusterTime" : {
"clusterTime" : Timestamp(1532137496, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
}
}
magic:OTHER> //magic表示副本集合名稱
#### 主節點上添加從節點