ApolloConfig ——分布式架构配置中心
·
文章目录
ApolloConfig —— 分布式架构配置中心
你好
ApolloConfig:作为分布式架构的配置管理中心。
🏃🏃🏃 … 点击前往github
这里主要介绍安装
你可以看这个下面的就不用看了~
了解如何使用(我还没写)
嗯,开始安装
- 两个数据库(初始化数据表)
- 三个包(ApolloConfig就三包,config、admin、portal)
- 解压、配置(改)、启动
就上面三个步骤就完成安装了
两个数据库
库1:ApolloPortalDB
- Linux下客户端执行sql到10.10.10.10数据库
> mysql -h10.10.10.10 -uroot -pPASSWORD -DApolloPortalDB < /data/server/sql/apolloportaldb.sql
库2: ApolloConfigDB
- Linux下客户端执行sql到10.10.10.10数据库
> mysql -h10.10.10.10 -uroot -pPASSWORD -DApolloConfigDB < /data/server/sql/apolloconfigdb.sql
三个包
写博客的时候是v1.9.2,如果需要最新版点击链接~
config
admin
protal
解压、配置、启动
config
- 解压
> unzip apollo-configservice-1.9.2-github.zip -d apollo-configservice
- 配置
> vi apollo-configservice/config/application-github.properties
# 数据库
spring.datasource.url = jdbc:mysql://我的:3306/ApolloConfigDB?characterEncoding=utf8&&serverTimezone=Asia/Shanghai&useSSL=false
spring.datasource.username = root
spring.datasource.password = root
- 启动
> sh ./apollo-configservice/scripts/startup.sh
admin
- 解压
> unzip apollo-adminservice-1.9.2-github.zip -d apollo-adminservice
- 配置
> vi apollo-adminservice/config/application-github.properties
# 数据库
spring.datasource.url = jdbc:mysql://我的:3306/ApolloConfigDB?characterEncoding=utf8&&serverTimezone=Asia/Shanghai&useSSL=false
spring.datasource.username = root
spring.datasource.password = root
- 启动
> sh ./apollo-adminservice/scripts/startup.sh
protal
- 解压
> unzip apollo-portal-1.9.2-github.zip -d apollo-portal
- 配置
> vi apollo-portal/config/application-github.properties
# 数据库
spring.datasource.url = jdbc:mysql://我的:3306/ApolloPortalDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
spring.datasource.username = root
spring.datasource.password = root
- 修改meta service信息
> vi apollo-portal/config/apollo-env.properties
local.meta=http://localhost:8080
dev.meta=http://localhost:8080
fat.meta=http://localhost:8080
uat.meta=http://localhost:8080
lpt.meta=http://localhost:8080
pro.meta=http://localhost:8080
- 启动
> sh ./apollo-portal/scripts/startup.sh
更多推荐
所有评论(0)