[LINUX] Install Apache Zookeeper

I tried it, so a memo

Premise

CentOS7 Java installed

procedure

  1. Download the tar file

    # curl -LkvOf https://downloads.apache.org/zookeeper/zookeeper-3.6.0/apache-zookeeper-3.6.0-bin.tar.gz
    
  2. Extract the tar file

    # tar zxf apache-zookeeper-3.6.0-bin.tar.gz
    
  3. Place under / opt

    # mv apache-zookeeper-3.6.0-bin /opt/zookeeper
    
  4. Create a running user

    # useradd zookeeper
    
  5. Create a zoo.cfg file and change the settings as needed (IP address, etc.)

  6. Change owner

    # chown -R zookeeper:zookeeper /opt/zookeeper
    
  7. Create a service file

    # vi /etc/systemd/system/zookeeper.service
    
    [Unit]
    Description=Apache Zookeeper Service
    
    [Service]
    Type=forking
    User=zookeeper
    ExecStart=/opt/zookeeper/bin/zkServer.sh start
    ExecStop=/opt/zookeeper/bin/zkServer.sh stop
    
    [Install]
    WantedBy=multi-user.target
    
  8. Reload

    # systemctl daemon-reload
    
  9. Start

    # systemctl start zookeeper
    

reference

Recommended Posts

Install Apache Zookeeper
Install Apache Zeppelin
Install Apache ActiveMQ
Install Apache 2.4.41 from source
Install Apache Maven (from source)
Install pytorch
Install Activiti 6
emacs-jedi install
ArcoLinux install
install python
Install virtualenv
Install mojimoji
Install Scipy
Install Memo
Install Qiskit
install keras
Install Mu
How to install Apache (httpd) on CentOS7
Install skt-war-result
Install Django
Install PyTorch
How to install Apache (httpd) on CentOS8
install pillow
ArchmanLinux Install