1. mongodb 설정 vi /var/mongodb/config/mongodb.cnf replSet=replicaSet oplogSize=10 2. mongodb 실행 mongo localhost:5050/admin 3. 복제셋 설정 db.runCommand( { "replSetInitiate" : {"_id" : "rsTest", "members" : [ {"_id" : 1, "host" : "ip1:5050"} , {"_id" : 2, "host" : "ip2:5050"} , {"_id" : 3, "host" : "ip3:5050", arbiterOnly : true} ] } } ) 4. 복제셋 확인 rs.status() 5. 노드추가 rs.add("ip4:5050") 6. 노드삭제 rs.remov..