![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ZooKeeper
宋发元
未来的CEO
展开
-
SpringCloud/SpringBoot整合Zookeeper Curator实现分布式锁
本代码适用于SpringCloud、SpringBoot。 pom.xml引入依赖包 <!-- Zookeeper分布式锁 https://mvnrepository.com/artifact/org.apache.curator/curator-recipes --> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-recipes<原创 2020-09-25 21:07:41 · 1005 阅读 · 0 评论 -
ZooKeeper启动占用8080端口
zookeeper最近的版本中有个内嵌的管理控制台是通过jetty启动,也会占用8080 端口。 通过查看zookeeper的官方文档,发现有3种解决途径: (1).删除jetty。 (2)修改端口。 修改方法的方法有两种,一种是在启动脚本中增加 -Dzookeeper.admin.serverPort=你的端口号.一种是在zoo.cfg中增加admin.serverPort=没有被占用的端口号原创 2017-07-24 15:04:49 · 2707 阅读 · 3 评论 -
ZooKeeper启动报错 JAVA_HOME is incorrectly set
在Windows下,我安装了多个版本的jdk,在启动 zkServer.cmd 一直报错 JAVA_HOME is incorrectly set 解决办法:直接写死调用的jdk路径 set JAVA_HOME="D:\Program Files\Java7\jdk1.7.0_51" if not exist %JAVA_HOME%\bin\java.exe原创 2017-07-24 14:56:44 · 1050 阅读 · 0 评论 -
Zookeeper注册中心和Dubbo-Admin管理平台的搭建
zookeeper安装与启动 首先应安装jdk。 前往https://www.apache.org/dyn/closer.cgi/zookeeper/下载zookeeper。 将路径zookeeper-3.5.2-alpha\conf下zoo_sample.cfg 改名为 zoo.cfg。 启动server只需运行zookeeper-3.5.2-alpha\bin目录下的zkServer.cm...原创 2018-03-25 12:21:31 · 408 阅读 · 0 评论 -
Linux安装Zookeeper
安装zookeeper 下载安装包: wget http://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/ 解压缩: tar -zxvf apache-zookeeper-3.5.5-bin.tar.gz 进入配置文件夹: cd apache-zookeeper-3.5.5-bin/conf/ 变更zoo_sample.cfg为zoo.cfg ...原创 2019-07-14 18:14:45 · 212 阅读 · 0 评论