linux 常用脚本

    14

重启jar包

#!/bin/sh
jarname='demo'
pid=`ps aux | grep $jarname | grep -v grep | awk '{print $2}'`
echo $pid
kill -9 $pid
nohup java -jar $jarname.jar --spring.profiles.active=prod  &
评论区
共有评论 0
暂无评论