zookeeper启动报错JMX enabled by defaultUsing config: /usr/local/zookeeper/zookeeper-3.4.6/bin/…/conf/zoo.cfg Error contacting service. It is probably not running.
解决方案:
1.关闭防火墙: service iptables stop,防止开机时在次启动可设置 chkconfig iptables off,来更改防火墙配置。
2.还可以删除zookeeper-3.4.6/data/zookeeper_server.pid文件,再次启动就可以了。