Environment variables involved in Tomcat configuration environment

system variable

(Fill in path with variable value)

  1. Variable name JAVA_HOME variable value C:\Program Files\Java\jdk1.8.0_221
  2. Variable name JRE_HOME variable value C:\Program Files\Java\jre1.8.0_221
  3. Variable name CATALINA_HOME variable value D:\apache-tomcat-9.0.59
  4. Add at the end of Path ;%JAVA_HOME%\bin;%JRE_HOME%\bin;%CATALINA_HOME%\bin;

After the configuration is complete, click the startup.bat file in D:\apache-tomcat-9.0.59\bin

 As shown in the figure, the startup is successful

Then verify whether the environment variable is configured successfully, and enter the browser:  http ://localhost:8080 

The display shows that the configuration environment is successful

Common reasons for failure:

1. When filling in the variable value and variable name, there are spaces.

2. Missing ";" etc. when editing and adding Path.

3. The path of the variable name is wrong.

4. The Tomcat port number defaults to 8080, so the access address is 8080. It may be that 8080 has been occupied before installing Tomcat or the port number has been modified after installation. If it is the latter, the URL needs to be modified when accessing.

Supongo que te gusta

Origin blog.csdn.net/qq_59456399/article/details/123254612
Recomendado
Clasificación