Only write the main steps, a lot of trivial things are not written up, such as where to set the environment variables, how to open cmd, and so on, everyone should remember.
1. Set in System variables:
Variable name: catalina_home
Variable Value: D:\Program files\tomcat7.0.81 (the home directory where Tomcat is placed)
2. Add the Tomcat Bin directory to the path variable of the system variable (not set)
; D:\Program Files\tomcat\bin
3. Installation of Tomcat Services
Under CMD, the CD enters the Tomcat bin directory, enter Service.bat install, carriage return. Service Installation Complete
4. Go to Tomcat's Bin directory and run Tomcat7w.exe. If the previous Tomcat service registration was unsuccessful, it would be a flash and could not access the program.
After entering, click on Start,tomcat to run up.
5. Enter http://localhost:8080/in the browser if you go to the Tomcat page, the deployment is successful.
With https://you won't be able to access Tomcat, and I don't know why.
The next article summarizes how to publish a war package on Tomcat.
Deploying Tomcat to the server in a Windows environment