Tomcat server installation, configuration, testing

Source: Internet
Author: User

Tomcat server installation, configuration, testing (win7_64bit)

    Directory

1. Overview

2. Tools used in this article

3.Tomcat Server Installation configuration

4.Tomcat server simple test

5. Precautions

1. Overview

Tomcat is commonly used as a running container for Servlets, which is widely available in javaweb development, and of course, Tomcat can serve HTML pages as well.

2. Tools used in this article

Tomcat installation package: network disk download (v8.0.35)

If you need another version, please check the website ...

3.Tomcat Server Installation configuration

3.1 Getting the installation package

The 8.0.35 version of the installation package is available on the network tray above, if you need another version, please find it on the official website:

The reason for choosing Tomcat8 here is that some of the IDE's own Ides do not support the latest Tomcat9.

3.2 Installing the server

Before installing, it is recommended that you prepare a separate directory for Tomcat:

To start the installation:

3.3 Configuration

The common configuration is the HTTP port modifications to the listener:

4.Tomcat Server Simple test

4.1 Starting and shutting down the server

4.2 In the server startup state, access its home page:

4.3 Note that there are also index files in its examples directory, accessed in the following ways:

4.4 Similarly, access to the home page file under the JSP directory is as follows:

In fact, WebApps is the application directory for Tomcat, and some sample programs are installed under example.

5. Precautions

5.1 When you run the Javaweb program in the IDE, turn off the Tomcat service, because the General IDE will start automatically, or you will be prompted for port conflicts.

5.2 Note Ensure the integrity of the JDK environment, otherwise use Tomcat error.

Back to Catalog

Tomcat server installation, configuration, testing

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.