文件解压并复制到 /usr/local目录下

centos zookeeper安装

创建data文件:mkdir data

修改配置文件

cd /conf  重名名 zoo.cfg

centos zookeeper安装

添加 zookeeper 用户

useradd zookeeper

 chown -R zookeeper:zookeeper zookeeper-3.4.12/

切换到zookeeper用户 su zookeeper

cd /usr/local/zookeeper-3.4.12/bin 找到对应的zkServer.sh启动

启动 ./zkServer.sh start

查看端口 netstat -tlun 

centos zookeeper安装

 

 

查看防火墙状态

systemctl status friewalld

查看端口

firewall-cmd --list-all

添加端口

firewall-cmd --zone=public --add-port=2181/tcp --permanent

重启防火墙

firewall-cmd --reload

centos zookeeper安装

 

 

 

 

相关文章:

  • 2021-10-11
  • 2021-08-21
  • 2021-07-25
  • 2021-07-16
  • 2022-01-05
  • 2022-12-23
  • 2021-06-02
猜你喜欢
  • 2021-07-19
  • 2021-12-09
  • 2021-04-28
  • 2021-11-27
  • 2021-11-08
  • 2021-08-08
  • 2021-05-28
相关资源
相似解决方案