Tomcat installation and configuration on Windows system

Getting Started with Java Learning: Tomcat Installation and Configuration



Preface

With the continuous development of technology, JAVA learning is becoming more and more important. Many people have started JAVA learning. This article briefly introduces the installation and configuration of Tomcat.


1. What is Tomcat?

Tomcat is a free and open source Web application server launched by Apache . It is a lightweight application server and is commonly used in small and medium-sized systems and situations where there are not many concurrent access users. It is the first choice for developing and debugging JSP programs. It has the function of processing HTML pages, and it is also a Servlet and JSP container .

2. Install Tomcat server

1. Download address

Tomcat official website download address http://tomcat.apache.org/

2.Installation

Extract the downloaded zip file to the specified file directory. For example: D:\apache-tomcat9.0.43
Note: Do not have Chinese characters or spaces in the directory name!

3. Configure Tomcat environment variables

1. Copy the installation path of Tomcat , such as: D:\apache-tomcat9.0.43.

2. On the computer desktop, right-click this computer -> select Properties -> click " Advanced System Settings ".

3. Click " Environment Variables " in Advanced System Settings -> Create a new system variable CATALINA_HOME , the value is the installation path of Tomcat -> Click "OK" to save.

4. Create a new system variable CATALINA_BASE , the value is the installation path of Tomcat -> click "OK" to save.

5. Add %CATALINA_HOME%\lib and %CATALINA_HOME%\bin to the path variable (Win10, if it is a Win7 system, remember to write an English semicolon first ; separate it).

6. After clicking "OK" continuously to save, start the tomcat service, enter "localhost:8080" in the browser, and the tomcat interface appears, which means the configuration is successful. It should be noted that Tomcat needs to install the JDK first.
Insert image description here

The above is what this article is about. This article only briefly introduces the installation and configuration of Tomcat. Then we can start a further learning journey~

Guess you like

Origin blog.csdn.net/panpan_Yang/article/details/131094544