windows启动zookeeper报错( Address already in use: bind)

时间:2024-04-03 10:55:00

windows启动zookeeper报错( Address already in use: bind)

报错原因

端口占用,导致zookeeper无法启动

解决方法

打开cmd输入netstat -aon查找占用的8080端口的pid,执行tasklist | findstr pid或者打开任务管理器找到对应服务关闭。
然后重新启动。
若没有端口占用可以修改zookeeper端口,然后用命令启动zookeeper。
windows启动zookeeper报错( Address already in use: bind)
cmd命令进入zookeeper的bin目录执行命令zkServer.cmd启动zookeeper
windows启动zookeeper报错( Address already in use: bind)
然后在打开新的cmd窗口进入zookeeper的bin目录下,执行命令zkCli -server 127.0.0.1:21810(这是更改后的客户端访问端口)
windows启动zookeeper报错( Address already in use: bind)
windows启动zookeeper报错( Address already in use: bind)