root@localhost ~]# mkdir /usr/local/zookeeper-cluster
[root@localhost ~]# cp -r zookeeper-3.4.6 /usr/local/zookeeper-cluster/zookeeper-1
[root@localhost ~]# cp -r zookeeper-3.4.6 /usr/local/zookeeper-cluster/zookeeper-2
[root@localhost ~]# cp -r zookeeper-3.4.6 /usr/local/zookeeper-cluster/zookeeper-3
clientPort=2181
dataDir=/usr/local/zookeeper-cluster/zookeeper-1/data
clientPort=2182
dataDir=/usr/local/zookeeper-cluster/zookeeper-2/data
clientPort=2183
dataDir=/usr/local/zookeeper-cluster/zookeeper-3/data
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |