Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
f5013824
Commit
f5013824
authored
Nov 29, 2020
by
linlinjava
Browse files
chore
parent
d4dde95b
Changes
3
Hide whitespace changes
Inline
Side-by-side
deploy/bin/deploy.sh
View file @
f5013824
#!/bin/bash
# 本脚本的作用是停止当前Spring Boot应用,然后再次部署
sudo
service litemall stop
sudo ln
-f
-s
/home/ubuntu/deploy/litemall/litemall.jar /etc/init.d/litemall
sudo
update-rc.d litemall defaults
sudo
update-rc.d litemall
enable
sudo
service litemall start
\ No newline at end of file
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 &
\ No newline at end of file
deploy/bin/reset.sh
View file @
f5013824
...
...
@@ -28,4 +28,5 @@ rm -f ./**
# 重新部署服务
cd
/home/ubuntu/deploy/bin
||
exit
2
sudo
./stop.sh
sudo
./deploy.sh
\ No newline at end of file
deploy/bin/stop.sh
0 → 100644
View file @
f5013824
#!/bin/bash
PID
=
$(
ps
-ef
|
grep
litemall.jar |
grep
-v
grep
|
awk
'{ print $2 }'
)
if
[
!
-z
"
$PID
"
]
then
kill
$PID
fi
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment