Installation and configuration of Tomcat

Time:2020-9-15

Start to learn java web, web project needs server, my computer is installed with Tomcat.

Tomcat website: http://tomcat.apache.org/

Recommended download tomcat9 address: https://tomcat.apache.org/download-90.cgi

 

There is a note when decompressing. The unzipped folder cannot be in Chinese

Environment configuration:

Configuration environment after download: Java_ HOME:C :\Program Files\Java\jdk1.6.0_ This is the root directory where JDK is installed. This is configured when installing eclipse. I use eclipse

Test under bin document folder in Tomcat

After running, enter: http://localhost :8080/

 

OK, this Tomcat will be fine

If it doesn’t work, it means that the environment is not configured well

 

Now configure the server in Eclipse:

Window->preferences->Server->RuntimeEnvironm->add

Note: a hole is added here. If the version of eclipse is too low or the Chinese version is cracked, there will be no server in the preference to download the plug-in. However, I suggest that the next eclipse be started

Download Reference: https://www.cnblogs.com/2979100039-qq-con/p/12287749.html

 

 

 

After you click finish, a server file will appear in the eclipse project bar, which will be configured

Right click to create a web project: File New > other > Web > dynamic web project

 

 

 

After the project is created, open a webcontent folder and right-click: webcontent > other > JSP > finish

 

 

 

That’s it

 

 

 

 

 

 

 

 

 

Open the browser after the console changes to this one

 

Open browser input

 

In this way, the whole process is completed. If you don’t understand, you can leave a message, or add qq2979100039. If there is any deficiency, I will change it. Thank you