0%

Apollo环境配置

一、背景

    Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。

二、配置环境路径

操作系统 server.properties hosts
windows C:\opt\settings\server.properties C:\Windows\System32\drivers\etc\hosts
linux /opt/settings/server.properties /etc/hosts

三、具体配置

3.1 server.properties

env=DEV

目前,env持以下几个值(大小写不敏感):

  ● DEV

      ○ Development environment

  ● FAT

      ○ Feature Acceptance Test environment

  ● UAT

      ○ User Acceptance Test environment

  ● PRO

      ○ Production environment

3.2 hosts

192.168.1.153 dev.config.ynt.ai

192.168.1.163 fat.config.ynt.ai

192.168.1.173 uat.config.ynt.ai

192.168.1.172 pro.config.ynt.ai