Comments (11)
@yangl, 你是使用了我们Quick Start直接打好的包运行的,还是通过分布式部署指南的文档自己编译运行的?
看了下,应该是cat客户端在运行时没有被禁用,不过不影响程序运行的。
from apollo.
@yangl, 看了下,如果是自己编译的客户端,目前应该是还没有剥离cat的,可能需要一点手工修改的步骤:
1.修改apollo-client/pom.xml,把apollo-buildtools的依赖的scope去掉
test
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-buildtools</artifactId>
</dependency>
2.把apollo-client/src/test/resources/META-INF/plexus/plexus.xml复制到apollo-client/src/main/resources/META-INF/下
3.重新编译打包apollo-client
from apollo.
按那个分步式部署方式来的,自己写个例子启动的。
但是也没有获取到配置中心上边设置的kv
from apollo.
如果运行客户端遇到问题,在你的项目中可以配置一下log,如log4j2.xml,并把apollo的level设置为DEBUG来查看更详细日志信息
<logger name="com.ctrip.framework.apollo" additivity="false" level="trace">
<AppenderRef ref="Async" level="DEBUG"/>
</logger>
我看到你的客户端日志里面env=PRO,那么在build.sh是否设置了pro_meta为正确的路径?
# meta server url
dev_meta=http://localhost:8080
fat_meta=http://localhost:8080
uat_meta=http://localhost:8080
pro_meta=http://localhost:8080
如果pro_meta设置对的话,那么就确认一下你的应用(100002)的配置是否发布了?
from apollo.
@yangl,另外如果是初次使用的话,建议可以先通过Quick Start来体验一下,那里面的包我们都已经事先配置好,基本上可以直接开箱使用的。
from apollo.
嗯,可以了,谢谢。
有时候我想把Eureak下的Instance Info 下的ipAddr 10.25.156.103这个地址暴露成公网地址?在哪能改下呢?
from apollo.
注册服务的时候我们目前就是配置preferIpAddress: true
,配置文件参见bootstrap.yml。
Eureka的instance默认是把自己本机的IP注册上去的,你说的公网地址是你本机的IP吗?还是另一台gateway或slb的机器?
from apollo.
Eureka的instance所在的机子上的公网IP(eth1),还有一块内网eth0,我把preferIpAddress改成false也一样,还是10.25.156.103,加了个hostname对应的公网ip也一样子!
from apollo.
可以试试ignoredInterfaces
配置
http://projects.spring.io/spring-cloud/spring-cloud.html#ignore-network-interfaces
from apollo.
谢谢,可以了,我们打算在11月中旬上这个哈!
另有没有交流群组?
from apollo.
@yangl,我建了一个QQ群,我们以后可以通过QQ群讨论~
from apollo.
Related Issues (20)
- 关于使用yaml配置的问题 HOT 2
- 缺乏用户管理相关的开放 API HOT 5
- 删除项目后异常 HOT 5
- 怎么没有mapper.xml文件 HOT 3
- 使用 H2 内存数据库,自动初始化快速启动失败,日志并没有错误日志,请问这是什么原因? HOT 8
- The management platform has added a new global configuration search feature HOT 3
- Spring 中 ConfigurationProperties 配置热更新问题 HOT 5
- 2.1.0版本,非 properties 格式的公共配置文件如yml的继承是否依然是在整个文件内容粒度进行,如果是请明确告知用户 HOT 5
- 增加不同环境下所有namespace的一键同步 HOT 3
- Add more observability in apollo config client HOT 2
- 请教 Bash 脚本如何请求开启了访问密钥的配置项 HOT 6
- apollo.meta; nested exception is java.net.UnknownHostException: apollo.meta HOT 5
- When is the 2.3.0 release scheduled? HOT 2
- Portal 模块 RestTemplate 支持配置 ConnectionTimeToLive
- apollo2.1.0集成pgsql,求给一份pgsql的sql文件。mysql的不可以用 HOT 3
- 无法删除旧的配置 HOT 5
- 在项目namespace数量比较多的情况下(大约1000个),打开页面加载速度很慢,比较影响用户体验,这个是否有什么优化改进方案? HOT 7
- Apollo是否可以支持按照key维度来发布? HOT 2
- 1.8.0,接入一个app.id 使用多个namespace的时候,多个namesapce均开启了accesskey.sercet,这时候接入的配置代码要怎么写呢 HOT 3
- OidcLocalUserService throw an Exception when executing createLocalUser in OIDC profile HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.