shells/hive.sh

2022/4/14 7:16:39

本文主要是介绍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

 



这篇关于shells/hive.sh的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程