Browse Source

05wms-ztf-test.sh

master
lizw 3 years ago
parent
commit
33969c64dc
  1. 10
      hua_wei_yun/05wms-ztf-test.sh

10
hua_wei_yun/05wms-ztf-test.sh

@ -239,19 +239,19 @@ startPcUi() {
#} #}
startMobileUi() { startMobileUi() {
pid=`ps -ef | grep 'node server.js -P 8092' | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep 'node server.js -P 8091' | grep -v 'grep' | awk '{print $2}'`
if [ -z $pid ];then if [ -z $pid ];then
echo "wms-ui-mobile 未运行" echo "wms-ui-mobile 未运行"
else else
echo -e "$echoPrefix ps -ef | grep 'node server.js -P 8092' | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" echo -e "$echoPrefix ps -ef | grep 'node server.js -P 8091' | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix"
ps -ef | grep 'node server.js -P 8092' | grep -v 'grep' | awk '{print $2}' | xargs kill ps -ef | grep 'node server.js -P 8091' | grep -v 'grep' | awk '{print $2}' | xargs kill
echo "wms-ui-mobile 已停止!" echo "wms-ui-mobile 已停止!"
sleep 3s sleep 3s
fi fi
echo -e "$echoPrefix cd $codePath/wms-ui-mobile $echoSuffix" echo -e "$echoPrefix cd $codePath/wms-ui-mobile $echoSuffix"
cd "$codePath/wms-ui-mobile" cd "$codePath/wms-ui-mobile"
echo -e "$echoPrefix nohup node server.js -P 8092 >>/dev/null 2>&1 & $echoSuffix" echo -e "$echoPrefix nohup node server.js -P 8091 >>/dev/null 2>&1 & $echoSuffix"
nohup node server.js -P 8092 >>/dev/null 2>&1 & nohup node server.js -P 8091 >>/dev/null 2>&1 &
} }
pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'`

Loading…
Cancel
Save