一 环境搭建参考
https://gitee.com/cakin24/apollo-build-scripts
二 下载apollo-build-scripts到本地
三 解压后的目录如下
四 将F:\springcloud\apollo-build-scripts\sql目录下的数据库导入到Mysql数据库
五 编辑demo.sh
# apollo config db info
apollo_config_db_url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8
apollo_config_db_username=root
apollo_config_db_password=123456
# apollo portal db info
apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8
apollo_portal_db_username=root
apollo_portal_db_password=123456
六 启动
1 git bash中输入命令
./demo.s