Installing Tomcat under Win7

Source: Internet
Author: User

Install a tomcat are twists, online data installation method is uneven, see more but dizzy, record their own installation process, easy to read later.

Which version do you choose?

Tomcat 8 requires JDK7 above, and to install 8 you need to first confirm your own JDK version (java-version). The native environment is 1.6, so choose Tomcat 7

1, enter the official website: http://tomcat.apache.org/

2, choose Binary Distributions version download.

The download process also occurred some episodes, my computer is 64-bit, so the first choice to download the 64-bit Windows zip. However, when the configuration installation is complete, the following exception is thrown when running Startup.bat:

Tomcat Can ' t load AMD 64-bit. dll on a IA 32

  

Indicates that the JRE environment is 32-bit. Puzzled, but I was obviously 64-bit, and later used java-version to view the JDK version.

D:\env\apache-tomcat-7.0.55\bin>java-versionjava version "1.6.0_16" Java (TM) SE Runtime Environment (build 1.6.0_16 -B01) Java HotSpot (TM) Client VM (build 14.2-b01, mixed mode, sharing)

Find yourself downloading the Java version of mixed mode. The default is to assume that the JRE environment is 32bit. The TOMCAT7 download configuration for 32-bit Windows zip is then re-selected, which can be accessed normally after startup.

Download complete, tomcat configured in the environment

Configure the Environment:

1, download a good zip to extract to a directory, eg:d:\env\apache-tomcat-7.0.55\

2, Computer-"Properties-" Advanced system Settings-"advanced-" Environment variables

In the System Variables column, create the following three variables:

In the path variable, add the%catalina_home%\bin

(Path is created when you configure the Java environment)

3, determine the save, configure the environment to complete

To configure the Startup method:

1. Open cmd

2, enter the CD%catalina_home%\bin;

3. Execute command: Service.bat install

4. Bat flashes past, don ' t care

5. Enter%catalina_home%\bin in the Explorer and click Tomcat7w.exe

Such as:

Click Start and the service starts. Service Status:start after startup.

When off, click Stop.

If you choose Startup Type:automatic. Indicates the default startup when booting.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.