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網段。
在這裏插入圖片描述
結論就是網絡出了問題,重啓一下網絡或者直接關掉網絡玩單機就行了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章