Installation and considerations for the Tomcat Windows system

Source: Internet
Author: User
Tags gz file

1 Getting the Tomcat installation package http://tomcat.apache.org/

The tar.gz file is the installation version of the Linux system

EXE file is the installation version under Windows system

ZIP file is a compressed version under Windows system

2 with Apache-tomcat-8.0.37-windows-x64.zip compressed version installation, decompression can

  

3 Configuration

3.1 Set the environment variable, add the Java_home variable to the environment variable, point to the Java JDK directory

  

  

3.2 Directly modify the Tomcat configuration parameters without adding java_home environment variables

Open the configuration file Catalina.bat under directory D:\Program Files\apache-tomcat-8.0.37\bin, add java_home and Jre_home variables and corresponding values after the first comment

  

4 starting Tomcat

Double-clicking the Open Bin (D:\Program files\apache-tomcat-8.0.37\bin) directory startup.bat,tomcat without any errors is initiated successfully.

  

5 Browser Input http://localhost:8080

Enter the URL to enter the Tomcat home page

  

6 Tomcat does not start correctly cause

6.1 Java_home configuration is not correct, note the Java_home JDK brutishness not have a space at the end, do not have a semicolon.

  

6.2 8080 Port number is occupied by another process

① closing a process that occupies port 8080

Netstat-ano viewing processes and their corresponding ports

  

After you get the PID, go to the Task Manager and force it off.

② changing the tomcat port number

Modify the node in the Conf/server.xml file to set the port number

<connector port= "8080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>

6.3 can start normally, but will navigate to another page

Modify the browser's add-ons to disable the default navigation

6.4 When you access Tomcat, make sure that the Tomcat server boots up and that the JDK must be installed correctly before you install Tomcat.

  

Installation and considerations for the Tomcat Windows system

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.