Publish the SpringBoot project to the cloud server

1. The project is marked as a jar package (the built-in tomcat of spring boot runs. As long as you configure jdk1.8 and above on the server, it is ok. No external tomcat is required)

2. Upload the jar package to the server

3. Start the project

 $ nohup java -jar test.jar >temp.txt &

    test.jar is your project jar package, temp.txt is the log file you run

Guess you like

Origin blog.csdn.net/qq_43037478/article/details/114800476