一、问题描述 启动zookeeper服务,接着在spring boot中整合zookeeper后,启动时报错:Identify and stop the process that's listening on port 8080 or configure this application to listen。二、问题原因 这是因为Zookeeper AdminServer默认使用8080端口,所有需要进行修改。三、解决方法(三种)1、在zk...
整合zookeeper连接时报错:8080端口被占用
一、问题描述
启动zookeeper服务,接着在spring boot中整合zookeeper后,启动时报错:Identify and stop the process that's listening on port 8080 or configure this application to listen。
二、问题原因
这是因为Zookeeper AdminServer默认使用8080端口,所有需要进行修改。
三、解决方法(三种)
1、在zkServer.cmd启动脚本中增加 -Dzookeeper.admin.serverPort=新的端口号
2、在zoo.cfg中增加 admin.serverPort=没有被占用的端口号
3、停用服务,在zkServer.cmd启动脚本中增加
-Dzookeeper.admin.enableServer=false2022-07-19