Tomcat installation and IDEA configuration Tomcat tutorial

Tomcat installation

Take Tomcat8.5 as an example

1. Website link

Apache Tomcat® - Apache Tomcat 8 Software Downloads

insert image description here

According to personal preference, I installed version 8.5

2. Download and decompress

My installation directory is (E:\Environments\apache-tomcat-8.5.83)

insert image description here

3. Configure system variables

insert image description here
insert image description here

The variable name is fixed, and the variable value is the tomcat decompression path! ! !

变量名:CATALINA_BASE
变量值:E:\Environments\apache-tomcat-8.5.83
    
变量名:CATALINA_HOME
变量值:E:\Environments\apache-tomcat-8.5.83

4. Create two new path variables

%CATALINA_HOME%\lib
%CATALINA_HOME%\bin

insert image description here

5. Double-click to run startup.bat

tomcat file bin directory
insert image description here

The output of the following statement means that the operation is successful!
insert image description here

6. Open the browser input

Enter localhost:8080

The following interface appears, which means the configuration is successful!

insert image description here

At this time, find shutdown.bat to run and close the tomcat service

insert image description here

IDEA deployment Tomcat

7. Click settings

Add Tomca server and confirm

insert image description here
insert image description here
insert image description here

8. Create a new project

insert image description here

9. Select jdk, tomcat and web application

insert image description here

10. Complete the creation

insert image description here

11. Configure tomcat service

insert image description here
insert image description here

12. Add deployment

insert image description here
insert image description here

13. Run the project

insert image description here

So far, IDEA configuration tomcat is complete!

Guess you like

Origin blog.csdn.net/AnnQAQ/article/details/127824546