zoukankan      html  css  js  c++  java
  • zookeeper 安装

    Zookeeper安装

    一、   下载zookeeper

    http://www.apache.org/dist/zookeeper/stable/

    二、   解压zookeeper.tar

    >> tar xvf zookeeper-3.4.6.tar.gz

    三、   配置zoo.cfg

    >> cp zoo_sample.cfg zoo.cfg

    >> vim zoo.cfg

    dataDir=/data/zookeeper

    dataLogDir=/var/log/zookeeper

    server.1=lv-master:2888:3888

    server.2=lv-slave01:2888:3888

    server.3=lv-slave02:2888:3888

    四、   创建data和log目录(其它机器相同操作)

    >> mkdir –p /data/zookeeper

    >> mkdir =p /var/log/zookeeper

    >> chmod 777 /data/zookeeper

    >> chmod 777 /var/log/zookeeper r

    >> cd /data/zookeeper

    >> vim myid

    其它机器上的与zoo.cfg配置的相一致

    五、   添加环境变量

    export ZOOKEEPER_HOME=/usr/local/zookeeper-3.4.6

    PATH=$ZOOKEEPER_HOME/bin:$PATH

    >> source /etc/profile

    六、   拷贝到其它机器

    >> scp /etc/profile @lv-slave02:/etc/

    >> scp -r zookeeper-3.4.6/ @lv-slave02:/usr/local/

    七、   启动zookeeper

    >> zkServer.sh start

    >> zkServer.sh status

  • 相关阅读:
    [Re] Spring-4(SourceCode)
    [Re] Spring-3(JdbcTemplate)
    [Re] Spring-2(IOC+AOP)
    [Re] Spring-1(bean)
    08-MyBatis(2)
    08-传输层(7)
    07-传输层(6)
    06-传输层(5)
    05-传输层(4)
    ALS推荐算法
  • 原文地址:https://www.cnblogs.com/smarthhl/p/5097056.html
Copyright © 2011-2022 走看看