zoukankan      html  css  js  c++  java
  • Dubbo入门

    在学习dubbo快速入门时踩的坑http://dubbo.apache.org/books/dubbo-admin-book/ 

    根据官网教程使用默认的Multicast 注册中心,在consumer消费者订阅时出现了com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service com.alibaba.dubbo.demo.DemoService. No provider available for the service com.alibaba.dubbo.demo.DemoService from registry 224.5.6.7:1234 on the consumer 192.168.137.1 using the dubbo version 2.0.0. Please check if the providers have been started and registered.异常

    此时因为Provider在注册时,出现了多个ip,打开cmd窗口,使用ipconfig查看ip信息,里面有多个ip包括ppp适配器,以太网适配器,vm虚拟机适配器等等,这个时候需要关闭ppp适配器(用拨号上网的断掉就好了),vm虚拟机适配器等,留下一个以太网适配器,里面的ip应是provider注册时等级的ip和consumer订阅时需要的ip。

    检测方法,使用每个ip地址在日志文件里面搜索,查看是否出现多个ip

  • 相关阅读:
    十三、Sleuth分布式请求链路追踪
    十二、SpringCloud Stream消息驱动
    十一、SpringCloud Bus 消息总线
    Linux命令(权限管理)
    Linux命令(文件管理)
    Linux的文件和目录
    Linux介绍及安装
    Docker
    Nginx
    13、SpringBoot整合Mybatis-Plus
  • 原文地址:https://www.cnblogs.com/ylw666/p/9030616.html
Copyright © 2011-2022 走看看