JMX enabled by default
Using config: /data/zookeeper-3.3.2/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
有人说是 nc问题 修改过 还不行。。求解答
此时可能是nc 工具的问题 --确认电脑里安装了nc(netcat)工具
去zkServer.sh 里找到 下面这句话
STAT=echo stat | nc localhost $(grep clientPort "$ZOOCFG" | sed -e 's/.*=//') 2> /dev/null| grep Mode
修改成
STAT=echo stat | nc -q l localhost $(grep clientPort "$ZOOCFG" | sed -e 's/.*=//') 2> /dev/null| grep Mode