Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[zookeeper] simple installation

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Turn off the firewall

Systemctl stop firewalld.servicesystemctl disable firewalld.service

two。 Install java

# Uninstall the existing jdkjava-versionrpm-qa | grep jdkyum-y remove java# installs the same version of jdkrz (jdk-8u144-linux-x64.rpm) rpm-ivh jdk-8u144-linux-x64.rpmjava-version

3. Install zookeeper

Download address: http://zookeeper.apache.org/releases.html

Tar zxvf zookeeper-3.4.10.tar.gzmv zookeeper-3.4.10 / usr/local/zookeepercd / usr/local/zookeepermkdir datacd / usr/local/zookeeper/confcp-a zoo_sample.cfg zoo.cfg vim zoo.cfg-tickTime=2000initLimit=10syncLimit=5dataDir=/usr/local/zookeeper/dataclientPort=2181-/usr/local/zookeeper/bin/zkServer.sh stop # stop ZooKeeper server / usr / local/zookeeper/bin/zkServer.sh start # start the ZooKeeper server-ZooKeeper JMX enabled by defaultUsing config: / usr/local/zookeeper/bin/../conf/zoo.cfgStarting zookeeper... STARTED-

Use of 4.zookeeper client (zkCli.sh)

/ usr/local/zookeeper/bin/zkCli.sh # directly enter localhost [ZK: localhost:2181 (CONNECTED) 0] / usr/local/zookeeper/bin/zkCli.sh-server 127.0.0.1 server 2181 #-server setting to enter that zookeeper [zk: 127.0.0.1 CONNECTED 2181 (CONNECTED) 0] # zookeeper is an absolute path There is no relative path [zk: 127.0.0.1 ls 2181 (CONNECTED) 0] ls / # root / view the initialized root directory [zookeeper]

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report