startup.sh 265 B

123456789
  1. echo "Stopping generator-1.0.0-SNAPSHOT.jar"
  2. pid=`ps -ef | grep generator-1.0.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
  3. if [ -n "$pid" ]
  4. then
  5. echo "kill -9 的id:" $pid
  6. kill -9 $pid
  7. fi
  8. nohup java -jar -Xms128m -Xmx128m generator-1.0.0-SNAPSHOT.jar &