apollo 配置中心搭建

别说谁变了你拦得住时间么 提交于 2020-01-09 13:34:24

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

本地搭建过程

1.启动Assembly(一套环境[dev,test,prod]启动一套,包含一个adminServer和一个configServer)  启动参数

-Dapollo_profile=github -Dspring.datasource.url=jdbc:mysql://localhost:3306/ApolloConfigDB -DcharacterEncoding=utf8 -Dspring.datasource.username=root -Dspring.datasource.password=root  -Dlogging.file=/Users/*/logs/apollo-assembly.log

2.启动一套portal  portal启动的时候需要制定各个环境的env_meta的地址,ServerConfig表中配置    apollo.portal.envs的值 dev,test,prod  新增多个环境

-Dapollo_profile=github,auth -Ddev_meta=http://localhost:8080/ -Dtest_meta=http://localhost:8080/ -Dserver.port=8070 -Dspring.datasource.url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8 -Dspring.datasource.username=root -Dspring.datasource.password=root  -Dlogging.file=/Users/*/logs/apollo-portal.log

 

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!