整合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、在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
mengvlog 阅读 597 次 更新于 2025-12-14 10:45:05 我来答关注问题0
檬味博客在线解答立即免费咨询

报错相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部