Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 1.4 KB

quick-start.md

File metadata and controls

55 lines (47 loc) · 1.4 KB

Quick Start

先决条件

  1. JDK 1.8+;
  2. Maven 3.2.x+;
  3. Git

下载与构建

git clone https://github.com/haozi2015/id-generator.git
cd id-generator
mvn -DskipTests clean package -P build

存储模式二选一

启动控制面板

cd id-generator-dashboard/target/
tar -xvf id-generator-dashboard-1.0-SNAPSHOT.tar.gz
#vim ./id-generator-dashboard/application.yml --配置存储地址
./id-generator-dashboard/start.sh

启动ID生成器三选一

简单版

  • 自定义注册中心
cd id-generator-app/id-generator-simple/target/
tar -xvf id-generator-simple-1.0-SNAPSHOT.tar.gz
#vim ./id-generator-simple/application.yml --配置存储地址
./id-generator-simple/start.sh

Spring Cloud

  • Eureka注册中心
cd id-generator-app/id-generator-spring-cloud/target/
tar -xvf id-generator-spring-cloud-1.0-SNAPSHOT.tar.gz
#vim ./id-generator-spring-cloud/application.yml --配置存储、Eureka地址
./id-generator-spring-cloud/start.sh

Dubbo

  • zookeeper注册中心
cd id-generator-app/id-generator-dubbo/id-generator-dubbo-provider/target/
tar -xvf id-generator-dubbo-provider-1.0-SNAPSHOT.tar.gz
#vim ./id-generator-dubbo-provider/application.yml --配置存储、zookeeper地址
./id-generator-dubbo-provider/start.sh

配置详情...