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
执行如下命令