Windows安装Zookeeper

写了一个Springboot2.0 + dubbo的小demo,用到了Zookeeper用于服务的发现和注册。

以下为单机模式

1. 下载zookeeper

先去官网下载稳定版的zookeeperzookeeper官网

2. 安装,配置

  1. 直接解压zookeeper的压缩包即可安装完成。
  2. conf 目录下的zoo_sample.cfg 改名为 zoo.cfg,因为 zookeeper在启动时会找这个文件作为默认配置文件。

3. 启动zookeeper

双击bin目录下的zkServer.cmd,即可启动zookeeper

13851057-354b104a42eb4a48.jpg
zk启动.jpg

如上图所示,启动成功。

注意:

  1. 不需要启动zkCli.cmd
  2. cmd窗口不能关。
  3. zookeeper的端口为2181

现在就可以去启动dubbo项目了。

猜你喜欢

转载自blog.csdn.net/weixin_34291004/article/details/87490309
今日推荐