Unable to connect to zookeeper server within timeout: 5000

时间:2024-03-16 10:58:06

Unable to connect to zookeeper server within timeout: 5000

出现了这个问题一般有以下几种情况

1.配置地址出错

Unable to connect to zookeeper server within timeout: 5000

2.部署zookeeper的机器的防火墙没关或者端口不通

3.连接时间不够,zookeeper默认时间为5000,时间需要改长一点

Unable to connect to zookeeper server within timeout: 5000

4.项目是否有依赖的其他模块,检查其他模块中是否有dubbo的配置,如果有,请检查配置是否正确.(这一条困了我3天,郁闷死了,快要放弃的时候想起来还有依赖的模块).