背景
1、使用的zookeeper是安装在本机的虚拟机中,网络调通(通过ping命令测网络)
2、启动spring程序,报错看不到services
报错信息就不打出来了。
WatchedEvent state:SyncConnected type:None path:null zxid: -1
[zk: localhost:2181(CONNECTED) 0] ls /
[zookeeper]文章来源:https://uudwc.com/A/9d1qV
解决方向
1、检查spring程序写的ip和端口
2、在windows的CMD使用Telnet命令检查端口是否通,不通则检查linux系统防火墙是否关闭(我的原因就是未关闭防火墙)
使用linux命令查看&关闭防火墙
查看:systemctl status firewalld.service
关闭:systemctl stop firewalld.service文章来源地址https://uudwc.com/A/9d1qV