Centos7下安装zookeeper3.5.8
- 下载zookeeper
- 安装zookeeper
- 配置文件修改
- 安装问题及解决方法
-
- 问题1:Using config: /usr/local/apache-zookeeper-3.5.8-bin/bin/../conf/zoo.cfg Starting zookeeper ... ./zkServer.sh: line 169: /usr/local/apache-zookeeper-3.5.8-bin/data/zookeeper_server.pid: Permission denied
- 问题2:JAVA_HOME is not set and java could not be found in PATH
- 问题3:Address already in use;Unable to start AdminServer, exiting abnormally
- 配置成开机自启动
下载zookeeper
进入官网下载:https://www.apache.org/dyn/closer.lua/zookeeper/zookeeper-3.5.8/apache-zookeeper-3.5.8-bin.tar.gz
记得要下载带bin的文件(这才是编译好的)
安装zookeeper
解压文件
sudo tar -zxvf apache-zookeeper-3.5.8-bin.tar.gz
进入解压后的文件
进而进入conf文件
将zoo_sample.cfg复制一份,命名为zoo.cfg
sudo cp zoo_sample.cfg zoo.cfg
配置文件修改
在解压后的文件下创建两个文件夹用于保存数据和日志
sudo mkdir data
sud