首页 > 代码库 > 安装zookeeper

安装zookeeper

  从zookeeper官方网站下载安装包:zookeeper-3.4.9.tar.gz

  解压安装

tar xvf zookeeper-3.4.9.tar.gz -C /usr/javacd /usr/java/zookeeper-3.4.9/confcp zoo_sample.cfg zoo.cfg

  启动zookeeper,zoo.cfg配置了启动端口等信息,默认:2181

cd /usr/java/zookeeper-3.4.9/bin./zkServer.sh start

安装zookeeper