5

Apollo 环境配置

 3 years ago
source link: https://geekvic.top/post/92932283.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

    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 持以下几个值(大小写不敏感):

      ○ Development environment

      ○ Feature Acceptance Test environment

      ○ User Acceptance Test environment

      ○ 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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK