leaf安装(分布式ID)
yum install -y git
cd /usr/local
git clone https://github.com/Meituan-Dianping/Leaf.git
#安装maven, 或离线安装
yum install -y maven
vim /etc/maven/settings.xml
#配置阿里镜像仓库
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
#打包
cd /usr/local/Leaf/
mvn clean install -DskipTests
#运行
cd leaf-server/
mvn spring-boot:run
#测试
#segment
curl http://localhost:8080/api/segment/get/leaf-segment-test
#snowflake
curl http://localhost:8080/api/snowflake/get/test