Download and installation of Tomcat 9.0 under Windows 10

First go to this official website to download Tomcat:

https://tomcat.apache.org/


Enter the home page, find Tomcat 9 under Download in the navigation on the left, click on it, and you will enter the following page:


Pull the scroll bar, my computer is 64-bit, click this 64-bit Windows zip to download.

After the download is complete, this file is: ;

Unzip it to where you want to put it, mine is D:\tomcat-9.0.7, and then set the environment variables of tomcat.

The environment variables are configured as follows:

CATALINA_BASE:D:\tomcat-9.0.7\apache-tomcat-9.0.7

Path: D:\tomcat-9.0.7\apache-tomcat-9.0.7\bin (add it after)

CATALINA_HOME:D:\tomcat-9.0.7\apache-tomcat-9.0.7,


Then click OK to complete the configuration.
Then go to D:\tomcat-9.0.7\apache-tomcat-9.0.7\bin, click starup.bat,

This screen appears even if the configuration is successful.


How to verify that the configuration is successful?

Do not turn off the above screen, enter http://localhost:8080/ in the browser address bar, and the following screen appears to prove that the configuration is successful.


Common problems: 1: Click startup.bat and it will flash, right-click to edit, enter the edit page, add pause to the last line, save,

                      

                 Then click startup.bat, if there is: this error, usually the path is wrong. At first I thought it was wrong, and finally confirmed that the configuration was correct.

Solution: Edit it manually in startup.bat and add it below setlocal:

set CATALINA_HOME=D:\tomcat-9.0.7\apache-tomcat-9.0.7

Save the startup, if the startup is still unsuccessful, I add JRE_HOME to the environment variable (note: it is in the user variable) (see the picture configuration)

Path followed by D:\tomcat-9.0.7\apache-tomcat-9.0.7\bin;D:\tomcat-9.0.7\apache-tomcat-9.0.7\lib

As a result, the tomcat was successfully started. I don't know the specific reason. It may be that the win10 system is incompatible, or the tomcat 9.0 is not stable.

Friends who know, please leave a message below the comment.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324891802&siteId=291194637