淘先锋技术网

首页 1 2 3 4 5 6 7

aa-flink.jar目前

start.sh

echo "start aa-flink"
cd /usr/local/aa-flink
source /etc/profile
nohup java -jar /usr/local/aa-flink/aa-flink.jar --spring.profiles.active=dev  --server.port=9955 -Xms512M -Xmx512M >/dev/null 2>&1 &

echo "aa-flinkis starting"

stop.sh

APP_PID=`ps aux | grep "aa-flink" |grep -i "java" | awk '{print $2}'`
echo "APP_PID: $APP_PID"

if [ -z $APP_PID ]
then
echo "no need kill"
else
kill -9 $APP_PID
sleep 2s
fi
echo "stop finish"