博客园 首页 私信博主 显示目录 隐藏目录 管理 动画

shells/hive.sh

 

 1 #!/bin/bash
 2 function hive_stop(){
 3    pid=$(ps ax | grep "hive")
 4    kill $pid || echo "hive服务关闭"
 5 }
 6 case $1 in
 7 "start"){
 8    echo "__________启动hive__________"
 9    /opt/module/hive/bin/hive
10 };;
11 "stop"){
12        hive_stop
13 };; 
14 esac

 

posted @ 2022-04-13 09:51  CHANG_09  阅读(28)  评论(0)    收藏  举报