启动脚本

vim /etc/init.d/flink 
#!/bin/bash
#chkconfig:2345 20 90
#description:kafka
#processname:kafka
export JAVA_HOME=//usr/local/jdk
case $1 in
        start) /usr/local/flink/bin/start-cluster.sh ;;
        stop)  /usr/local/flink/bin/stop-cluster.sh ;;
        *) echo "require start|stop" ;;
esac


chmod a+x /etc/init.d/flink




posted @ 2022-12-02 17:52  三里清风18  阅读(14)  评论(0编辑  收藏  举报