Tomcat7.0 Configuration

Tomcat7.0 Download: http://tomcat.apache.org/download-70.cgi

Select the version to meet the (native win8-64 bit systems) own operating system, the options are as follows:

http://118.186.9.91/files/40150000012D8243/123.125.244.87/apache/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42-windows-x64.zip

 

Once downloaded, unzip to a local environment, native unzip to D: \ tomcat.

 

Tomcat need to set environment variables:

  1. JAVA_HOME: jdk installation path (native D: \ Java \ jdk1.7;)
  2. JRE_HOME: jre installation path (native D: \ Java \ jdk1.7 \ jre;)
  3. TOMCAT_HOME:D:\tomcat
  4. CATALINA_HOME:D:\tomcat
  5. CLASSPATH: Add D: \ tomcat

 

Run -> Cmd-> into the tomcat file -> bin-> startup.bat

 

At this time there are problems that you may encounter:

  1. Tip: JAVA_HOME not found
  2. Tip: JRE_HOME not found

 

Solution: Find setclasspath.bat, right in the edit bin, add the following two lines set up at the beginning:

set JAVA_HOME=D:\Java\jdk1.7

set JRE_HOME=D:\Java\jre7

 

Again run startup.bat, not prompt other errors.

 

Open HTTP: // localhost: 8080 / , you will see a welcome screen.

 

Reproduced in: https: //my.oschina.net/secyaher/blog/274496

Guess you like

Origin blog.csdn.net/weixin_34343689/article/details/91967183