zookeeper启动失败:【zkServer.sh status Error contacting service. It is probably not running】

本文涉及的产品
任务调度 XXL-JOB 版免费试用,400 元额度,开发版规格
云原生网关 MSE Higress,422元/月
MSE Nacos/ZooKeeper 企业版试用,1600元额度,限量50份
简介: zookeeper启动失败:【zkServer.sh status Error contacting service. It is probably not running】

一、查找问题:

在前台显示问题:

zkServer.sh start-foreground

端口被占用:

46aabf46eec21c0df05e814aba12d1a7_70.png

二、执行netstat -alnp | grep 2181  查看被占用端口,执行kill -9 4840 杀死占用端口的进程 :

35082470f5c09a0016e40145b6b801b9_70.png

三、重启zookeeper

e3f7cdba23d0f0f992e0055a970b778d_70.png


AIEarth是一个由众多领域内专家博主共同打造的学术平台,旨在建设一个拥抱智慧未来的学术殿堂!【平台地址:https://devpress.csdn.net/aiearth】 很高兴认识你!加入我们共同进步!

目录
相关文章
分布式系列教程(25) -解决Zookeeper启动失败的问题
分布式系列教程(25) -解决Zookeeper启动失败的问题
643 0
|
分布式计算 Hadoop
Zookeeper 启动失败【Cannot open channel to 3 at election address...】
解决Hadoop Zookeeper连接问题:检查Zookeeper目录权限,使用`sudo chown -R username:username /your_zookeeper_path`授权。确保`zoo.cfg`配置`quorumListenOnAllIPs=true`并监听所有IP。关键是机器ID(如`server.0`, `server.1`等)需与IP或主机名对应,修正`zoo.cfg`中的设置,例如`server.0=hadoop120:2888:3888`等。重启Zookeeper后,问题解决。
671 0
【已解决】ZooKeeper配置中出现Error contacting service. It is probably not running
【已解决】ZooKeeper配置中出现Error contacting service. It is probably not running
726 1
|
网络安全 开发工具
zookeeper解决Error contacting service. It is probably not running.
应用场景 安装了zookeeper集群之后,应用命令zkServer.sh start后,启动了zookeeper服务,用jps进程发现存在QuorumPeerMain进程,但是查看zookeeper状态的时候,发现报Error contacting service. It is probably not running.错误,提示服务并没有启动,那这是什么原因呢?原因可能有多种造成的,下面我们来分析一下。
28941 1
|
Java Linux 数据安全/隐私保护
成功解决ZooKeeper配置中出现Error contacting service. It is probably not running
成功解决ZooKeeper配置中出现Error contacting service. It is probably not running
查询zookeeper端口号,报 “stat is not executed because it is not in the whitelist.”
查询zookeeper端口号,报 “stat is not executed because it is not in the whitelist.”
530 0
|
Linux
关于ZooKeeper在Linux端启动失败的问题解决方案
关于ZooKeeper在Linux端启动失败的问题解决方案
714 0
关于ZooKeeper在Linux端启动失败的问题解决方案
|
12月前
|
安全 应用服务中间件 API
微服务分布式系统架构之zookeeper与dubbo-2
微服务分布式系统架构之zookeeper与dubbo-2
|
12月前
|
负载均衡 Java 应用服务中间件
微服务分布式系统架构之zookeeper与dubbor-1
微服务分布式系统架构之zookeeper与dubbor-1
|
12月前
|
存储 负载均衡 Dubbo
分布式-Zookeeper(一)
分布式-Zookeeper(一)