Giter VIP home page Giter VIP logo

Comments (11)

nobodyiam avatar nobodyiam commented on May 15, 2024

@yangl, 你是使用了我们Quick Start直接打好的包运行的,还是通过分布式部署指南的文档自己编译运行的?

看了下,应该是cat客户端在运行时没有被禁用,不过不影响程序运行的。

from apollo.

nobodyiam avatar nobodyiam commented on May 15, 2024

@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.

yangl avatar yangl commented on May 15, 2024

按那个分步式部署方式来的,自己写个例子启动的。
但是也没有获取到配置中心上边设置的kv

from apollo.

nobodyiam avatar nobodyiam commented on May 15, 2024

如果运行客户端遇到问题,在你的项目中可以配置一下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.

nobodyiam avatar nobodyiam commented on May 15, 2024

@yangl,另外如果是初次使用的话,建议可以先通过Quick Start来体验一下,那里面的包我们都已经事先配置好,基本上可以直接开箱使用的。

from apollo.

yangl avatar yangl commented on May 15, 2024

嗯,可以了,谢谢。
有时候我想把Eureak下的Instance Info 下的ipAddr 10.25.156.103这个地址暴露成公网地址?在哪能改下呢?

from apollo.

nobodyiam avatar nobodyiam commented on May 15, 2024

注册服务的时候我们目前就是配置preferIpAddress: true,配置文件参见bootstrap.yml

Eureka的instance默认是把自己本机的IP注册上去的,你说的公网地址是你本机的IP吗?还是另一台gateway或slb的机器?

from apollo.

yangl avatar yangl commented on May 15, 2024

Eureka的instance所在的机子上的公网IP(eth1),还有一块内网eth0,我把preferIpAddress改成false也一样,还是10.25.156.103,加了个hostname对应的公网ip也一样子!

from apollo.

nobodyiam avatar nobodyiam commented on May 15, 2024

可以试试ignoredInterfaces配置

http://projects.spring.io/spring-cloud/spring-cloud.html#ignore-network-interfaces

from apollo.

yangl avatar yangl commented on May 15, 2024

谢谢,可以了,我们打算在11月中旬上这个哈!
另有没有交流群组?

from apollo.

nobodyiam avatar nobodyiam commented on May 15, 2024

@yangl,我建了一个QQ群,我们以后可以通过QQ群讨论~

tech-support-qq

from apollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.