启动 jetty 的脚本

#!/bin/bash

A=`netstat -tunpl |grep 8000 |awk '{print $7}' |awk -F "/" '{print $1}'`
echo "A=$A"
if [ -n "$A" ];then
kill -9 $A
echo "jetty_PID=$A"
else
echo "NO Jetty Active"
fi

cd /home/test/class4_ui/routers/jetty/
java  -DrouterConf=/home/test/class4_ui/routers/conf/data.properties -Xms512m -Xmx600m  -jar /usr/src/jetty-7.0.0.pre5/start.jar myjetty.xml & 

猜你喜欢

转载自javatophp.iteye.com/blog/1059353