Browse Source

05kibana.sh

master
lizw 4 years ago
parent
commit
b5f8bc2ac8
  1. 6
      00base/05kibana.sh

6
00base/05kibana.sh

@ -27,8 +27,8 @@ stopServer() {
if [ -z $pid ];then if [ -z $pid ];then
echo "$serverName 未运行" echo "$serverName 未运行"
else else
echo -e "$echoPrefix ps -ef | grep 'DappName=./../node/bin/node ./../src/cli/dist' | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" echo -e "$echoPrefix ps -ef | grep './../node/bin/node ./../src/cli/dist' | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix"
ps -ef | grep "DappName=./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}' | xargs kill ps -ef | grep "./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}' | xargs kill
echo "$serverName 已停止!" echo "$serverName 已停止!"
fi fi
} }
@ -42,7 +42,7 @@ restartServer() {
startServer startServer
} }
pid=`ps -ef | grep "DappName=./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep "./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}'`
# 操作参数: restart start stop kill # 操作参数: restart start stop kill
if [ "$cmd" == "restart" ];then if [ "$cmd" == "restart" ];then
restartServer $pid restartServer $pid

Loading…
Cancel
Save