系统相关
首页 > 系统相关> > shells/hiveserver2.sh

shells/hiveserver2.sh

作者:互联网

 

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

 

标签:bin,________________,shells,stop,pid,echo,hiveserver2,sh
来源: https://www.cnblogs.com/chang09/p/16138892.html