1 安装java环境
yum search java
yum install java-1.8.0
2 安装zookeeper
mkdir /app/
cd /app/
wget https://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz
wget https://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz
上面的下载不了用下面的
tar -zxf apache-zookeeper-3.7.0-bin.tar.gz 解压
3 更改配置文件
cd /conf
cp zoo.sample.cfg zoo.cfg 复制配置文件
vim zoo.cfg 修改
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example