Windows build tomcat runtime environment

  
​​

Software version: the latest version

jdk-8u5-windows-x64: http://download.oracle.com/otn-pub/java/jdk/8u5- B13/jdk-8u5-windows-x64.exe apache-tomcat-8.0.8-windows-x64: http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.8/bin/apache -tomcat-8.0.8-windows-x64.zip

First install the JDK and double-click to install it. Configure “system variable”:
1 2 3 4 5 6 7 8 9 Variable Name: JAVA_HOME Variable Value: C:\\Program Files\\Java\\jdk1.8.0_05 #jdkInstallation Path Variable Name: CLASSPATH Variable Value: .;%JAVA_HOME%\\lib;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar;%TOMCAT_HOME%\\BIN #Note that there is a point in front of the Edit Path variable: Variable Name: Path Variable Value: %JAVA_HOME%\\bin;%JAVA_HOME%\\jre\\bin; #Add to the variable value to the front of the original variable.

Open a command prompt and check if the installation is correct: Execute: java -version See the java version information. Install tomcat: Download the zip package here and extract it directly. I put it in the C drive directory. Set the tomcat environment variable:
1 2 Variable name: TOMCAT_HOME Variable value: C:\\apache-tomcat-8.0.8

Start tomcat: c:\\apache-tomcat-8.0.8\\bin\\startup.bat There is a tomcat form that is always displayed. Check if the port is up: Command prompt execution: netstat -an |  Find “8080″ |  Find “LIS” Open your browser and go to http://localhost:8080/and you will see the tomcat page. Set tomcat to boot: C:\\>cd apache-tomcat-8.0.8\\bin\\ #Switch to the tomcat bin directory C:\\apache-tomcat-8.0.8\\bin>service.bat #Direct execution can See usage Usage: service.bat install/remove [service_name] [/user username] #Install service method C:\\apache-tomcat-8.0.8\\bin>service.bat install #Install tomcat service. Double-click tomcat8w.exe under C:\\apache-tomcat-8.0.8\\bin to set the startup type to automatic and the state to start. This will start at random.



Copyright © Windows knowledge All Rights Reserved