Centos 6.5 Zookeeper 安装

原文链接: http://www.cnblogs.com/liuyuhua/p/5945457.html

tar -xvf zookeeper-3.4.8.tar.gz

   

   

   

   

修改配置文件

   

   

   

测试

   

上传启动脚本,内容如下:

   

#!/bin/bash

#chkconfig:2345 20 90

#description:zookeeper

#processname:zookeeper

zookeeper="/usr/mysoft/zookeeper-3.4.8/bin/zkServer.sh"

case $1 in

start) $zookeeper start;;

stop) $zookeeper stop;;

status) $zookeeper status;;

restart) $zookeeper restart;;

*) echo "require start|stop|status|restart" ;;

Esac

   

执行如下命令

   

   

   

   

   

   

   

   

   

转载于:https://www.cnblogs.com/liuyuhua/p/5945457.html

猜你喜欢

转载自blog.csdn.net/weixin_30814319/article/details/94788193