Tomcat download, install, configure environment variables

1. Download and install tomcat

1. Enter the official website: https://tomcat.apache.org/

2. Click Which version

Choose the corresponding tomcat version according to the jdk version you downloaded. The jdk version downloaded here is 8, so choose tomcat 9 version

 3. Click tomcat 9

Select the version corresponding to your computer (here I downloaded the 64-bit version), click download, and select the appropriate storage path

 4. After the download is complete, find the downloaded file

5. Open the file, find the bin file, double-click to open it, and find the startup.bat file

 6. Double-click to open the startup.bat file

A command line window will appear, and there will be a bunch of garbled characters, do not close the current window 

7. Open the browser and enter the URL: http://localhost:8080/

The content cannot be displayed before the environment variable is configured, so the environment variable needs to be configured

 2. Configuration of environment variables

1. Right click on This PC and select Properties

 2. Find the advanced system settings and select environment variables

 3. Click New

The variable value fills in the path stored by tomcat

Click OK when finished

4. Enter the browser again and enter the URL  http://localhost:8080/

If the following picture appears, it means that the configuration is successful ( reminder: you need to open the startup.bat file before entering the URL )

Guess you like

Origin blog.csdn.net/ZY594358676/article/details/127455005