配置Zookeeper开机启动
vi /etc/rc.d/init.d/zookeeper
#!/bin/bash
#chkconfig:2345 20 90
#description:zookeeper
#processname:zookeeper
case $1 in
start) su root /opt/zkhome/zookeeper-3.3.6/bin/zkServer.sh start;;
stop) su root /opt/zkhome/zookeeper-3.3.6/bin/zkServer.sh stop;;
status) su root /opt/zkhome/zookeeper-3.3.6/bin/zkServer.sh status;;
restart) su root /opt/zkhome/zookeeper-3.3.6/bin/zkServer.sh restart;;
*) echo "require start|stop|status|restart" ;;
esac
~
chmod a+x /etc/rc.d/init.d/zookeeper
chkconfig --add zookeeper
chkconfig zookeeper on
正文到此结束
- 本文标签: 暂无相关标签
- 本文链接: https://www.jimmy2k.top/article/150
- 版权声明: 本文由JimmyZ的个人博客原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权