简单地在Docker环境上搭建一个无认证的MongoDB集群.1.本文使用的容器集群角色 ContainerName IP:portConfig Server cfg_1 10.1.1.2:27019Config Server cfg_2 10.1.1.3:27019Config Server cfg_3 10.1.1.4:27019Shard Server shard1_1 10.1.1.5:27018Shard Server shard1_2 10.1.1.6:27018Sha…
创建一个集群 [vagrant@node1 ~]$ docker swarm init --advertise-addr 192.168.9.101 Swarm initialized: current node (9fv7wb4zve235hltmchxprez7) is now a manager. To add a worker to this swarm, run the following command: docker swarm -1wk8aduuxnay6ek866xaj31ix…