This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#!/bin/bash
# 本脚本的作用是停止当前Spring Boot应用,然后再次部署
PID=$(ps -ef | grep litemall.jar | grep -v grep | awk '{ print $2 }')
if [ ! -z "$PID" ]
then
kill $PID
fi
cd /home/ubuntu/deploy/litemall || exit 2
nohup java -jar litemall.jar > log.log 2>&1 &