zookeeper启动失败,日志报错ava.net.BindException: Address already in use

cat zookeeper.out 里面的报错信息如下:
zookeeper启动失败,日志报错ava.net.BindException: Address already in use_第1张图片
用netstat查看下2181占用的情况

[root@hadoop0 bin]# sudo netstat -atunlp | grep 2181
tcp6       0      0 :::2181                 :::*                    LISTEN      4950/java    

发现被占用,用kill结束它

[root@hadoop0 bin]# sudo kill -9 4950

查看下进程结束了吧?
在这里插入图片描述

你可能感兴趣的:(zookeeper启动失败,日志报错ava.net.BindException: Address already in use)