Deploy the JavaWeb project on the cloud server Tomcat application server, IDEA exports the war project package, which is run and accessible in the cloud

Prerequisite: There is a cloud server and JDK and Tomcat are configured. If there is no other cloud database, mysql database must be installed and configured on the cloud server.

1. The project exports the war package (I take IDEA as an example).

1. Enter the Project Structure interface of the project
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here

2. Upload the war file to webapps under the Tomcat directory. (You'd better practice configuring war on your own machine to avoid unnecessary operations)

First shut down the server tomcat

Insert picture description here
Insert picture description here

3. Restart Tomcat and visit our project

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41170600/article/details/106522027