ERROR [main:QuorumPeerMain@113] - Unexpected exception, exiting abnormally java.net.BindException: Address already in use
时间: 2024-04-24 10:27:24 浏览: 239
回答: 根据报错信息,出现了"Address already in use"的错误,这意味着zookeeper的2181端口已经被占用了。有几种可能性导致这个问题:一是zookeeper没有正常关闭,导致2181端口没有释放;二是其他应用程序占用了2181端口。你可以通过以下几种方法来解决这个问题:首先,可以打开终端,使用命令"netstat -ano|findstr "2181""来查看占用2181端口的进程。\[1\]其次,你可以使用命令"sudo kill -9 <进程ID>"来终止占用2181端口的进程,然后重新启动zookeeper。\[2\]最后,你可以重启zookeeper来释放2181端口。\[2\]希望这些方法能够帮助你解决问题。
#### 引用[.reference_title]
- *1* [ zk服务启动跟报错:Unexpected exception, exiting abnormally java.net.BindException](https://blog.csdn.net/z759127503/article/details/118101471)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Zookeeper启动失败:java.net.BindException: Address already in use](https://blog.csdn.net/py_123456/article/details/80314221)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文