启动脚本
1 echo 'start xx 服务' 2 nohup java -Xmx4096m -Xms1024m -jar xx.jar --spring.profiles.active=release > /riskservice/queryservice/query.log 2>&1 &
停止脚本
echo 'sh stop xx服务' taskNumber=`ps -ef | grep java | grep -i xx |awk '{print $2}'` `kill -9 $taskNumber`