ソースを参照

chore: 脚本完善启动

Junling Bu 6 年 前
コミット
8219d12fdb
1 ファイル変更2 行追加0 行削除
  1. 2 0
      deploy/bin/deploy.sh

+ 2 - 0
deploy/bin/deploy.sh

@@ -3,4 +3,6 @@
 # 本脚本的作用是停止当前Spring Boot应用,然后再次部署
 # 本脚本的作用是停止当前Spring Boot应用,然后再次部署
 sudo service litemall stop
 sudo service litemall stop
 sudo ln -f -s /home/ubuntu/deploy/litemall/litemall.jar /etc/init.d/litemall
 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
 sudo service litemall start