1. 程式人生 > >SpringBoot 打jar包部署

SpringBoot 打jar包部署

環境:Spring Tool Suite、SpringBoot 2.0.4、Maven、Linux

步驟:

1、在工程上右鍵,Run As ->Maven clean,清理工程。

2、在工程上右鍵,Run As -> Maven install,即可得到jar包。

3、把jar包上傳到伺服器。執行。

[[email protected] ~]# nohup java -jar webDeploy-1.1.0.jar >webDeploy.log &
[1] 21396
[[email protected] ~]# nohup: ignoring input and redirecting stderr to stdout
[
[email protected]
~]#