1. Download tomcat
and open the tomcat official website with a browser: http://tomcat.apache.org/
Select the latest Tomcat 9 under Download in the navigation bar on the left, and click "64-bit Windows zip (pgp, md5, sha1)" proceed to
download and complete
2. Install tomcat
and use it after decompression
3. Configure environment variables
1. Configure jdk environment variables (omitted)
2. Create a new variable name in the system variables: CATALINA_BASE, variable value: D:\tomcat \apache-tomcat-9.0.0.M9
Create a new variable name in the system variables: CATALINA_HOME, variable value: D:\tomcat\apache-tomcat-9.0.0.M9
Open PATH in the system variables, and add a variable value: %CATALINA_HOME %\lib;%CATALINA_HOME%\bin
3. Open cmd, enter the bin directory under tomcat, and execute "service.bat install". Attachment: service uninstall command: service.bat remove
4.
There are two ways to start tomcat :
1. Method 1. : Double-click to open the tomcat9w.exe in the bin folder under the tomcat path, and click "start" in the opened software management software.
2. Method 2: Right-click "My Computer" -> "Management" -> on the desktop "Services and Applications" -> "Services", find the "Apache Tomcat 9.0 Tomcat9" service, right-click the service, and select "Start".
After tomcat is started, you can find the "Commons Daemon Service Runner" process in the process of the task manager. Under this process, there is a service of "Apache Tomcat 9.0 Tomcat9" running;
5. Test whether the installation is successful.
Use the browser to open http:/ /localhost:8080/, if it is successfully opened, it means tomcat is installed and running successfully