Original link:
http://www.cnblogs.com/liuyuhua/p/5945457.html
tar -xvf zookeeper-3.4.8.tar.gz
Modify the configuration file
test
Upload startup script, which reads as follows:
#!/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
Run the following command
Reproduced in: https: //www.cnblogs.com/liuyuhua/p/5945457.html