1:下载并导入DB文件
2:下载ApolloConfig
3:修改配置文件
ConfigService和AdminService
application-github.properties
spring.datasource.url = jdbc:mysql://asus:3306/ApolloConfigDB?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.username = auth_user
spring.datasource.password = zxc521cxzPass!
PortalService
application-github.properties
spring.datasource.url = jdbc:mysql://asus:3306/ApolloPortalDB?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.username = auth_user
spring.datasource.password = zxc521cxzPass!
apollo-env.properties
dev.meta=http://localhost:8080
4:启动
启动ConfigService
启动AdminService
启动PortalService
5:修改端口
启动脚本分别修改SERVER_PORT
ApolloConfigDB#ServerConfig修改eureka.service.url