Giter Site home page Giter Site logo

hbq969 / zkc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.78 MB

一个基于Zookeeper的配置中心控制台

License: MIT License

Groovy 5.71% Shell 7.28% Dockerfile 0.18% Java 50.97% JavaScript 0.26% HTML 0.72% Vue 28.80% CSS 0.04% TypeScript 6.04%

zkc's Introduction

1.组件说明

​ 目前主流的开源配置中心有:SpringCloud ConfigNacosApolloDisconf,都是比较优秀的开源方案,为啥还要搞一个出来,主要原因为2个方面吧:首先zk本身的机制就支持集群部署保证了配置服务的可用性和安全性,可以将zk作为数据存储介质,另外也方便日后有特殊的需求能自行进行扩展实现。

2.Dashboard

3.安装部署

  • 安装部署(需依赖部署zookeeper)
git clone https://github.com/hbq969/zkc.git
cd zkc/src/main/resources/static
nvm use 20
npm install && npm run build
cd -
mvn springboot:run
  • 本地运行

http://localhost:30141

cd zkc/src/main/resources/static
nvm use 20
npm run serve

4.配置使用

  • 依赖
<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-starter-zookeeper-config</artifactId>
</dependency>
<dependency>
  <groupId>org.apache.zookeeper</groupId>
  <artifactId>zookeeper</artifactId>
  <version>3.6.2</version>
</dependency>
  • 接入配置中心

src/main/resources/bootstrap.properties

spring.application.name=demo
spring.cloud.zookeeper.enabled=true
spring.cloud.zookeeper.connect-string=localhost:2181
spring.cloud.zookeeper.config.root=/com/github/hbq
spring.cloud.zookeeper.config.watcher.enabled=false
spring.cloud.zookeeper.config.defaultContext=common
spring.cloud.zookeeper.config.profileSeparator=,
spring.cloud.zookeeper.auth.schema=digest
spring.cloud.zookeeper.auth.info=zk密码

zkc's People

Contributors

hbq969 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.