dubbo: zookeeper not connected

  1. 问题
    dubbo连接zookeeper提示 zookeeper not connected
  2. 原因
    原因是连接超时导致的,默认连接超时是3秒
  3. 解决
    方案1:dubbo和zookeeper在同一个内网下
    方案2:配置超时时间,改长点,如20秒
    dubbo.config-center.timeout=20000

猜你喜欢

转载自blog.csdn.net/Lossdate/article/details/113578121