Mac

[Mac] 9 Mac 安装配置 Zookeeper

Mac 安装配置 Zookeeper

Posted by Mr.Vincent on 2020-01-22
Estimated Reading Time 1 Minutes
Words 107 In Total
Viewed Times

使用 brew 查看 zookeeper 信息

1
brew info zookeeper

得到输出信息

1

Homebrew 来安装 Zookeeper

1
brew install zookeeper

查看配置文件

缺省的配置文件在以下目录中

1
cd /usr/local/etc/zookeeper/

2

修改配置文件 zoo.cfg(可保持默认状态)

1
2
3
4
tickTime=2000
dataDir=/usr/local/zookeeper-3.4.14/data
dataLogDir=/usr/local/zookeeper-3.4.14/logs
clientPort=2181

注:个人认为 brew 安装下的 zookeeper 的版本较低,可参考:Linux 下手动安装 Zookeeper


If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !