The springboot project is packaged into a jar package and deployed to the linux server, running and stopping operations

There is no particular order in learning, no distinction in knowledge; no matter how big or small, you should ask for advice with an humility; if three people walk, there must be my teacher! ! ! wished for you successed! ! !

1. When the idea is opened, operate as shown in the figure below, and BUILD SUCCESS appears, indicating that the package is successful!

2. You can open the project folder to see the generated jar package

3. Upload the jar package to the server. If there is no rz command, you can upload it manually, or you can install the rz/sz command by install

yum install lrzsz
rz

4. Under the linux terminal, first, switch to the directory where the jar package project is located,

If the java environment is not installed, first configure the jdk, you can see my article, the details! Execute command to install jdk1.8 in linux environment 
:

nohup Java –jar jar包名 &

5. Check whether the log started successfully, or ps

tail -f nohup.out

//或者直接查看进程

ps -ef | grep java

6. If you want to stop the project running, just kill the process directly kill + enter the corresponding process code

kill 22816

❤If the article is helpful to you, please click like at the top right corner of the article or at the end of the article! (づ ̄ 3 ̄)づ 

❤If you like the articles shared by the white rabbit, please pay attention to the white rabbit! (๑′ᴗ‵๑)づ╭❤~

❤If you have any questions about the article, please leave a message below or join the group to discuss [group number: 708072830]

❤In view of the limited personal experience, all opinions and technical research points, if you have any objections, please reply directly to the discussion (do not make offensive remarks)

Guess you like

Origin blog.csdn.net/weixin_43970743/article/details/109246305