Apollo本地快速部署记录
-
apollo本地部署记录
1.1 SQL准备
下载快速启动包:github.com/apolloconfi…
执行SQL:
执行结果
sql验证
select
NamespaceId
,Key
,Value
,Comment
from ApolloConfigDB.Item;2. 修改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=root
-
apollo portal db info apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8 apollo_portal_db_username=root apollo_portal_db_password=root
路径修改
cd "${0%/*}" 修改成绝对路径:cd /Users/dingyawu/Downloads/apollo-quick-start-master
3. 启动
4. 验证使用
访问http://localhost:8070 ,账号密码:apollo, admin
测试项目:gitee.com/Snowstorm0/…
修改配置项:
server.port=8083 app.id=learn-apollo apollo.meta=http://192.168.2.4:8080 env=DEV param.paramStr=str1 param.paramList=str1,str2,str3 param.paramMap={"key1":"value1","key2":"value2","key3":"value3"}
具体可以参考:developer.aliyun.com/article/113…