mac OSX中安装启动zookeeper
安装 zookeeper支持brew安装。 查看zookeeper 信息 $ brew info zookeeper 安装zookeeper $ brew install zookeeper 安装后,在 /usr/local/etc/zookeeper/ 目录下,已经有了缺省的 配置文件 。 $ ls /usr/local/etc/zookeeper defaults log4j.properties zoo.cfg zoo_sample.cfg 打开配置文件 $ less -N /usr/local/etc/zookeeper/zoo.cfg 1 # The number of milliseconds of each tick 2 tickTime=2000 3 # The number of ticks that the initial 4 # synchronization phase can take 5 initLimit=10 6 # The number of ticks that can pass between 7 # sending a request and getting an acknowledgement 8 syncLimit=5 9 # the directory where the snapshot is stored. 10 # do not