Flashback problem when Tomcat starts

Start the Tomcat server in a flash

  The first thing to do is to understand why it won't start. The method is to run the startup.bat file under the command line, so that the program will not flash by, but will print the reason for not starting to the window. Readers should be very clear about the method of starting tomcat under the command line. Generally speaking: cmd starts the command line window -> go to the bin directory of tomcat through the cd command -> run startup.bat. as the picture shows:

  When tomcat starts, it will read the information of the environment variables, and it needs the information of CATALINA_HOME and JAVA_HOME. CATALINA_HOME is the home directory of tomcat, JAVA_HOME is the home directory of java installation, and the home directory of jdk. First, configure JAVA_HOME at the environment variable, note that the variable value is the home directory of jdk, not the bin directory, and do not add a semicolon , as shown in the figure:

  If the above addition still crashes, edit the startup.bat file, add PAUSE to the last line, and rerun:

Enter the URL in the browser: 127.0.0.1:8080 or localhost:8080 to test:

 

  

  

 

Guess you like

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