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 configuration1.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 deployment2.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! You may also be interested in:
|
<<: MySQL database case sensitivity issue
>>: Vue3+el-table realizes row and column conversion
Table of contents 1. Basics 1.ref 2. toRef 3. toR...
This article shares the specific code of Vue to a...
This article shares the specific code of jQuery t...
Table of contents 1. First install echarts in the...
Docker Compose Docker Compose is a tool for defin...
Cerebro is an evolution of the Elasticsearch Kopf...
Preface Since I needed to install Zookeeper durin...
Today I deployed the free-installation version of...
Reference: MySQL character set summary utf8mb4 ha...
Table of contents Preliminary Notes Problem Repro...
/****************** * Linux kernel time managemen...
Theoretically, the memory used by MySQL = global ...
The current requirement is: there is a file uploa...
Stop MySQL Service Windows can right-click My Com...
Data is the core asset of an enterprise and one o...