1.0版本完成
This commit is contained in:
1
shell/log.sh
Normal file
1
shell/log.sh
Normal file
@ -0,0 +1 @@
|
||||
tail -f nohup.out
|
1
shell/start.sh
Normal file
1
shell/start.sh
Normal file
@ -0,0 +1 @@
|
||||
nohup java -jar yshop-api-1.0.jar --spring.profiles.active=prod &
|
7
shell/stop.sh
Normal file
7
shell/stop.sh
Normal file
@ -0,0 +1,7 @@
|
||||
PID=$(ps -ef | grep yshop-api-1.0.jar | grep -v grep | awk '{ print $2 }')
|
||||
if [ -z "$PID" ];then
|
||||
echo Application is already stopped
|
||||
else
|
||||
echo kill $PID
|
||||
kill $PID
|
||||
fi
|
Reference in New Issue
Block a user