Tomcat download and installation configuration (nanny level tutorial)

Table of contents

1. Download Tomcat corresponding to jdk

2. Installation

3. Configuration environment

Four, run

5. Find this computer, right-click to manage, click in the red circle in turn, change to automatic, and then click Apply

6. Uninstall

7. Good luck to everyone!


1. Download Tomcat corresponding to jdk

1. Query the version of the installed jdk

win+R, open and run, enter cmd to enter

2. Generally, 64-bit is specified, and if there is no one, it is generally 32-bit (32-bit is downloaded for 32-bit, it must be corresponding!!!)

 3. Enter the official website of tomcat to download: Apache Tomcat® - Welcome!

This is the Tomcat I downloaded, the link is permanently valid

 Link: https://pan.baidu.com/s/1KSYE5ZChaf_79qN1LPEhfA?pwd=68gz Extraction code: 68gz After copying this content, open the Baidu Netdisk mobile app, the operation is more convenient

2. Installation

1. Put the compressed package in a separate folder to decompress, it is recommended to put it on the D drive, and use Tomcat for the file name (must not have Chinese)

3. Configuration environment

1. Open the Control Panel, find System and Security --> System --> Advanced System Settings

2. Click New --> Fill in the variable name CATALINA_HOME --> You can find the Tomcat installation path by browsing the directory --> OK

 

3. Double-click the path, enter and then double-click the last blank space to edit %CATALINA_HOME%\bin, and then confirm

 

 

Four, run

1. win+R, open and run, enter cmd to enter

2. Enter the bin folder in Tomcat (my installation path is D:\Tomcat\apache-tomcat-8.5.87\bin), the last command is covered, I will send service.bat install again

Seeing this is almost a success

3. Open the bin folder in Tomcat and double-click the following file

 Appear this, do not close! ! ! Finally open http://localhost:8080/ in the browser

 In this way, the configuration is successful!

5. Find this computer, right-click to manage, click in the red circle in turn, change to automatic, and then click Apply

 

 

 

 

6. Uninstall

If unfortunately, you click on this file and it crashes, you fail to open the above webpage or click on the above picture to start, a pop-up window appears, prompting "Windows cannot start Apache Tomcat on the local computer. For more information, see System event log. If this is a non-Microsoft service, please contact the service". It may be that the versions of Tomcat and Jdk do not match, you may need to uninstall and reinstall. Recommend this blog http://t.csdn.cn/0jZQI

7. Good luck to everyone!

 

Supongo que te gusta

Origin blog.csdn.net/qq_43659681/article/details/129504959
Recomendado
Clasificación