#! /bin/bash

port=8093
pid=`lsof -t -i:$port`
echo "$pid"
if [ $pid eq 0 ]
then
	echo "api is already stopped"
else
	kill -9 $pid
	echo "api is killed"
fi
java -jar -Xms512m -Xmx512m -Xmn200m -Xss256k api-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod &

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-10-17
相关资源
相似解决方案