Deploying java projects with jar packages on linux
First of all, a small plug-in must be installed on eclipse, called fat jar
Click on fat jar
Select the main class in the red box and click next
such as Check the checkmark
and find the jar package in this path
Place the jar package under the linux server through the ftp protocol
Enter the jar package path
Enter the command java - jar xxx.jar
#Run successfully!
Notice! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
When you disconnect from the server, the project will stop!
So use the following command
Command: nohup java -jar xxx.jar
You can view the process through the command ps -ef | grep java
The above is the detailed content of How to deploy JAVA project with JAR package on LINUX. For more information, please follow other related articles on the PHP Chinese website!