错误1:
user0@slave1:/usr/local/zookeeper-3.4.6$ zkServer.sh status
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
jps看看,可能是误报。如果是误报。
原因:
/etc/hosts中127.0.0.1 localhost被注释掉了
修改脚本zkServer.sh,将里面的localhost修改为127.0.0.1