【推荐】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
来源:oschina
链接:https://my.oschina.net/u/3126880/blog/3155253