Tomcat9 download, installation and configuration + detailed tutorial on integrating into eclipse

Tomcat9 download, installation and configuration + detailed tutorial on integrating into eclipse

tomcat official website

tomcat is equivalent to a local server and can open web pages

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

Download to the set location. Download is now complete.

Install

1. Unzip the downloaded installation package

insert image description here

2. To configure environment variables, select My Computer, right-click Properties –> Advanced –> Environment Variables –> System Variables, and add the CATALINA_HOME variable.

insert image description here

Add variable value to the Path system variable
%CATALINA_HOME%\bin;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;

insert image description here

3. Add a user, enter the D:\tomcat\apache-tomcat-9.0.37\conf directory, and open it with Notepad

insert image description here

Add the following code before the last line of the file

<role rolename="manager-gui"/>
 <role rolename="admin-gui"/>
 <user username="admin" password="admin" roles="admin-gui"/>
 <user username="tomcat" password="admin" roles="manager-gui"/>

Then save it.

insert image description here

4. Enter D:\tomcat\apache-tomcat-9.0.37\bin and double-click

insert image description here

Or enter startup.bat through the command line

insert image description here

Start tomcat, and an English prompt will appear in the command line window.

insert image description here

Open the browser and enter http://localhost:8080 or http://127.0.0.1:8080 to enter the Tomcat welcome page.

insert image description here
insert image description here

At this point, the tomcat installation and configuration is complete.

Garbled solution:

Enter the D:\tomcat\apache-tomcat-9.0.37\conf path (according to the installation path to the conf file) and open it with Notepad

insert image description here

document

insert image description here

Then save it.
In the command line window, enter startup.bat

insert image description here
insert image description here

The garbled code problem is solved here.

Integration into Eclipse

1. Open eclipse, left-click Windows–》preferences

insert image description here
insert image description here

2. Select the path of Tomcat on this machine

insert image description here

3. Tomcat has its own default deployment path, but in order to facilitate the management of files in the future, we can set a deployment path as the Tomcat installation path
Windows–》show view

insert image description here
insert image description here

Check and save as shown to complete the integration of Tomcat.

insert image description here

This is the end of this article about tomcat9 download, installation and configuration + integration into eclipse tutorial. For more relevant tomcat download, installation and configuration content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Regarding the configuration method of JDK+Tomcat+eclipse+MyEclipse, it is enough to read this article
  • Tomcat configuration and how to start it in Eclipse
  • How to configure tomcat server for eclipse and IDEA
  • Import Maven Web project into Eclipse and configure it to run in Tomcat
  • Solve the error Cannot create a server using the selected type when configuring Tomcat in Eclipse
  • Summary of detailed steps for eclipse configuration tomcat10

<<:  JS achieves five-star praise case

>>:  A brief discussion on the implementation of fuzzy query using wildcards in MySQL

Recommend

How to rename the table in MySQL and what to pay attention to

Table of contents 1. Rename table method 2. Notes...

Tomcat Nginx Redis session sharing process diagram

1. Preparation Middleware: Tomcat, Redis, Nginx J...

Python 3.7 installation tutorial for MacBook

The detailed process of installing python3.7.0 on...

Does MySql need to commit?

Whether MySQL needs to commit when performing ope...

Tutorial diagram of installing TomCat in Windows 10

Install TomCat on Windows This article will intro...

An analysis of div+float, a very important concept in website design

In website construction, you will always encounter...

Detailed explanation of JavaScript error capture

Table of contents 1. Basic usage and logic 2. Fea...

CSS3 realizes the graphic falling animation effect

See the effect first Implementation Code <div ...

Detailed explanation of Apache SkyWalking alarm configuration guide

Apache SkyWalking Apache SkyWalking is an applica...

Specific use of Linux dirname command

01. Command Overview dirname - strip non-director...

Steps to build MHA architecture deployment in MySQL

Table of contents MAH 1. Introduction to MAH Arch...

Vue implements a scroll bar style

At first, I wanted to modify the browser scroll b...

CSS uses radial-gradient to implement coupon styles

This article will introduce how to use radial-gra...