The development tools The shell kills the Java process and then restarts it January 28, 2024 by Cynthia Norton No Comments #! /bin/sh APP_NAME=metabase.jar PID=`ps -ef | grep java |grep $APP_NAME |awk '{print $2}'` echo "find metabase PID:$PID" kill9 -$PID echo "killed metabase PID:$PID" ./start.sh echo "start success!"Copy the code