Before installing Tomcat, please install Java first before installing Tomcat.
Install Java, environment variable path settings and cmd tips, please see: Java novice environment construction JDK8 installation configuration tutorial
Download Tomcat
First, go to Tomcat's official website to download the latest version of Tomcat's version of Windows. According to the operating system we are using, we download the zip version of 64-bit Windows. Installer version is not recommended.
Let's take apache-tomcat-9.0.0.M15-windows-x64.zip as an example.
Unzip the zip file to the specified directory
Configure environment variable CATALINA_HOME
Variable name: CATALINA_HOME Variable value: (the home directory stored by Tomcat software)
Added after the existing environment variable path
The added content is:
%CATALINA_HOME%/bin;
Note: Do not miss the semicolons before and after %CATALINA_HOME%/bin . A relatively complete path should be in the following form:
%JAVA_HOME%/bin;%M2_HOME%/bin;%GRADLE_HOME%/bin;%CATALINA_HOME%/bin;
That is, different bin paths are separated by semicolons.
anywhere cmd enter start to start Tomcat
Enter: http://localhost:8080/
Browser displays:
This means that Tomcat has been launched successfully.
Tomcat, you can enter shutdown.bat , and the cmd window that pops up before will be automatically closed.
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.