Windows Platform Tomcat Service build

Source: Internet
Author: User
Tags apache tomcat

1. Download

    • JDK Download

    

    • Tomcat download

    

2. Installation Configuration

    • JDK Installation Configuration

The installation process does not repeat.

Configuration:

        • Environment variables:

Java_home, the variable value is: C:\JDK (depending on the JDK path)

CLASSPATH, the value of the variable is.; %java_home%\lib;

PATH, variable value is%java_home%\bin

        • In the cmd command line interface, enter the command java-version to test whether the installation was successful.
    • Tomcat installation

Unzip the download package, you can modify the default folder name, such as Modify apache-tomcat-8.0.0-rc5-windows-x64 to Tomcat.

    

Configuration:

        • Environment variables:

Tomcat_home Variable Value: C:\tomcat (Tomcat decompression path)

Catalina_home Variable Value: C:\tomcat (same as Tomcat_home, for Tomcat decompression path)

Modify path, add the following at the end: ";%catalina_home%\bin;%catalina_home%\lib", the value of each variable must be used;

        • Configuring Tomcat for System Services

To modify the Service.bat, add it before the first line:

Name of the service: set Service_name=tomcat

Display name of the service: set Pr_displayname=apache Tomcat

In the DOS interface, enter the bin directory of the Tomcat decompression directory and input the command: Service remove Tomcat

Service.bat Install

If the installation succeeds, you will be prompted: the service ' Tomcat (or you have modified one after the service_name) ' has
been installed

3. Testing

Enter http://http://localhost:8080 or http://127.0.0.1:8080 in the browser

The installation will be successful as shown in

Windows Platform Tomcat Service build

Related Article

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.