dubbo mulicast 启动报错

Failed to check the status of the service gaochao.dubbo.service.DemoService. No provider available for the service gaochao.dubbo.service.DemoService from the url multicast://224.5.6.7:1234/org.apache.dubbo.registry.RegistryService?application=consumer-of-helloworld-app&dubbo=2.0.2&init=false&interface=gaochao.dubbo.service.DemoService&methods=sayHello&pid=13604&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333&register.ip=192.168.56.1&release=2.7.5&side=consumer&sticky=false&timestamp=1578622811277 to the consumer 192.168.56.1 use dubbo version 2.7.5

当时ip是这样的,mulicast最后用的ip就是10.8.0.122 ,然后consumer就报了上面的错误。
在这里插入图片描述
在网上找到解决方案是将虚拟网卡禁了,然后禁止以后没有什么效果。于是找到了一个说法:
在这里插入图片描述
试了试对我这个没啥效果,于是又找了一下博客,https://blog.csdn.net/huaihkiss/article/details/54880115
这位大老说是网络问题,禁止虚拟网卡,但是之前禁止以后没有什么效果,文中也说可能是其他网络的问题,既然网络出了问题,那就一不做二不休,把网络关闭了。
将网络关闭(笔记本设置成飞行模式,关闭虚拟网卡),启动成功后
启动成功后

然后神奇的事情出现了,出现了网络后重启了一下网络,想要截个图把事情的前因后果写出来,结果consumer又能成功运行了,只不过multicast变成了配置的样子。而不是原来的10网段。
在这里插入图片描述
结论就是网络出了问题,重启一下网络或者直接关掉网络玩单机就行了。

发布了19 篇原创文章 · 获赞 15 · 访问量 1072

猜你喜欢

转载自blog.csdn.net/qq_30396379/article/details/103920951