zookeeper
- 打开目录
cd /etc/init.d/
- 新建zookeeper
vi zookeeper
- 修改内容
#!/bin/bash
export JAVA_HOME=/opt/jdk1.8.0_161
export PATH=$JAVA_HOME/bin:$PATH
#chkconfig:2345 20 90
#description:zookeeper
#processname:zookeeper
case $1 in
start)
/opt/zookeeper/zookeeper-