Detailed tutorial on Tomcat installation and deployment in Windows 10

Detailed tutorial on Tomcat installation and deployment in Windows 10

Before installing and deploying tomcat, you must first ensure that there is a Java environment on the machine. Therefore, the installation and deployment of tomcat is generally divided into two parts: the first is the configuration of the java environment, and the second is the installation and deployment of tomcat.

1 Java environment configuration

1.1 Open the website "http://www.oracle.com/technetwork/java/javase/downloads/index.html" and download the corresponding version of the Java installation package, as shown in the figure below:

1.2 After the installation package is downloaded, it should be as shown below:

1.3 Double-click the downloaded file to install Java. During the installation process, there are two pop-up interfaces to select the installation path. The first is the path to install JDK, and the second is the path to install JRE. We only need to select the corresponding path, as shown in the figure:

1.3 After Java is successfully installed, the next step is to configure the environment variables. Right-click [This Computer] on the desktop to open the properties interface, then select "Advanced System Settings" on the left, switch to the [Advanced] tab in the opened page, and then click the "Environment Variables" button, as shown below:

1.4 After opening the environment variable interface, configure the Java environment, select the "New" button in [System Variables], and then create a new java_home system variable, as shown in the figure:

1.5 Find the "Path" variable in [System Variables] and double-click it, then add "%JAVA_HOME%\bin", as shown in the figure:

1.6 In many tutorials, you need to configure CLASSPATH and other configurations. In fact, you don’t need to set this variable at all in JDK versions above 1.5. At this point, the Java installation and environment configuration have been completed. Let's test it:

Press "windows+r" to open the run window, enter cmd to call the command line, and enter java, java -version, javac and other commands in sequence to test. If the following information is displayed, it means the configuration is successful:

2 tomcat installation and deployment

2.1 Open the URL "https://tomcat.apache.org/download-90.cgi" to download the installation package, as shown in the figure:

2.2 After downloading, double-click the installation package to install it. There will be an interface prompting you to select the installation path of JDK, as shown in the figure:

2.3 At this point, the tomcat installation is complete. Enter "localhost:8080" in the browser to test. If the following interface appears, it means that the deployment is successful:

Summarize

The above is the tutorial on Tomcat installation and deployment in Windows 10 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Tutorial diagram of installing TomCat in Windows 10

<<:  MySQL database case sensitivity issue

>>:  Vue3+el-table realizes row and column conversion

Recommend

How to understand the difference between ref toRef and toRefs in Vue3

Table of contents 1. Basics 1.ref 2. toRef 3. toR...

Vue realizes simple effect of running light

This article shares the specific code of Vue to a...

jQuery implements the bouncing ball game

This article shares the specific code of jQuery t...

Vue+Echart bar chart realizes epidemic data statistics

Table of contents 1. First install echarts in the...

Detailed explanation of Docker compose orchestration tool

Docker Compose Docker Compose is a tool for defin...

Installation and use tutorial of Elasticsearch tool cerebro

Cerebro is an evolution of the Elasticsearch Kopf...

Detailed explanation on how to install MySQL database on Alibaba Cloud Server

Preface Since I needed to install Zookeeper durin...

Solution to the problem "Table mysql.plugin doesn't exist" when deploying MySQL

Today I deployed the free-installation version of...

MySQL encoding utf8 and utf8mb4 utf8mb4_unicode_ci and utf8mb4_general_ci

Reference: MySQL character set summary utf8mb4 ha...

A brief discussion on the correct approach to MySQL table space recovery

Table of contents Preliminary Notes Problem Repro...

Linux kernel device driver kernel time management notes

/****************** * Linux kernel time managemen...

Summary of MySQL 8.0 memory-related parameters

Theoretically, the memory used by MySQL = global ...

Vue+SSM realizes the preview effect of picture upload

The current requirement is: there is a file uploa...

Solution to MySQL root password error number 1045

Stop MySQL Service Windows can right-click My Com...

Some suggestions for ensuring MySQL data security

Data is the core asset of an enterprise and one o...