摘要:
MongoDB支持两种复制模式:主从复制(Master/Slave)复制集复制(Replica Set)下面主要记录我在centos虚拟机上安装replica set,主要参考:http://docs.mongodb.org/manual/tutorial/deploy-replica-set/首先准备好3份配置文件:1 port = 270172 3 dbpath = /home/bells/install/data14 logpath = /home/bells/install/log1/1.log5 6 fork = true7 replSet = rs01 port = 270162 阅读全文