Tomcat installation and troubleshooting methods

Introduction:

  1. Open source project of Apache Jakarta
  2. JSP/Servlet container

Install:

1.1 Enter the  Tomcat official download address  , select the appropriate version to download, and unzip it locally.

(Note) Tomcat 8.5 requires JDK version 1.7 or higher. When decompressing, choose the path

 

1.2 can also choose to install the version

 

2. Configure the environment variable CATALINA_HOME :

 

 

3. Enter the Tomcat installation directory ----->bin----->startup.bat (double-click to run) to start Tomcat

4. After startup, visit  http://localhost:8080  , you can see the test page of successful Tomcat installation

 

 

Troubleshoot method:

  Enter the bin file in the Tomcat installation directory in cmd mode, cd C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin

   Run  the startup.bat run command, the error report will be printed below, and then solve it according to the printed problem

As follows, I encountered a crash when running startup.bat. According to the above steps, I found that there was a problem with my environment settings, and then I changed the value of the environment variable to solve it.

 

Guess you like

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