- Install the JDK first, configure the JDK environment, and then configure Tomcat 8.
- To configure environment variables:
- Tomcat_home:d:\program files\apache-tomcat-8.0.28
- Catalina_home:d:\program files\apache-tomcat-8.0.28
- Catalina_base:d:\program files\apache-tomcat-8.0.28
- Modifying the CLASSPATH variable
- Append at the back:;%catalina_home%\lib\servlet-api.jar
- Modifying the PATH variable
- Append at the back:;%catalina_home%\bin
- Then start the Startup.bat service startup
- This indicates that the service started successfully.
- It's a hassle to start registering Windows services with this every time you turn on services
- Start-run-cmd (Administrator) CD to D:\Program Files\apache-tomcat-8.0.28\bin directory
- Execution: Service.bat Install
- And then you can see the Tomcat service in the list of services.
Java environment Configuration-Configuring the TOMCAT8 environment