Javaweb--tomcat Installation and catalogue introduction

Source: Internet
Author: User
Tags tomcat server

One, the web

The web can be said to be a set of request-to-process response. The client uses the browser (IE, Firefox, etc.) to connect to the server over the network, using the HTTP protocol to initiate requests (request), and all requests now go through a Web server Plugin (server plug-in) to process. This plug-in is used to differentiate whether a static resource is requested (*.htm or *.htm) or a dynamic resource.

1. Static page

If the Web server plugin discovers that the client is requesting a static resource (*.htm or *.htm), the request is forwarded directly to the Web server, after which the Web server takes the content out of the file system and sends it back to the client browser for resolution execution. (using pseudo-static of some URL rewriting, server Web server plugin it to be a static resource request, but essentially due to a dynamic resource, still connected to the database, logical processing, etc.)

2. Dynamic page

If Web Server plugin discovers that the client is requesting a dynamic resource (*.asp/*.aspx, *.jsp, *.php), the request is forwarded to the Web Container (Web container), the database is connected in the Web Container, After a series of operations, such as extracting data from a database, and then dynamically piecing together the contents of the page, putting together the content of the page, all the content is presented to the Web server, and then the content is sent back to the client browser through the Web server for parsing and execution.

Two, Web server 1, server program concept Introduction

A Web server program is a program that resides on a type of computer on the Internet and is a program that can be requested by a browser and returned to a browser document. When a Web browser (client) connects to a server and requests a file, the server processes the request and feeds the file back to the browser, which tells the browser how to view the file (that is, the file type).

A server program is a passive program: The server responds only when a request is made by a browser running on the Internet on another computer.

2. Introduction to IIS and Tomcat

Microsoft's Web server product is Internet Information Services (IIS), which is a Web server that allows information to be published on the public intranet or the Internet. IIS is one of the most popular Web server products, and many well-known sites are built on the IIS platform. IIS provides a graphical interface for administrative tools, called Internet Information Services Manager, that you can use to monitor configuration and control Internet services.

Tomcattomcat is a minimal Web server that implements the Java EE Standard and is a core project of the Apache Software Foundation's Jakarta Project, developed by Apache, Sun, and other companies and individuals. Because of advanced Tomcat technology, stable performance, and open source free, so deeply loved by Java enthusiasts and have been recognized by some software developers, become the most popular Web application server. Learning Javaweb development generally uses the Tomcat server, which supports all JSP and servlet specifications, the 9.0 startup interface:

3.TomCat Installation and Configuration

1, no matter what web resources, want to be accessed by a remote computer, must have a corresponding network communication program, when the user to access, the network communication program read the Web resource data, and send the data to the visitors.
2, Web server is such a program, it is used to complete the underlying network communication. Using these servers, we developers need to focus on how the Web resources are written, without caring how the resources are sent to the client, greatly reducing developer effort.

3.1 Downloads

Tomcat Installer Package: http://tomcat.apache.org/

Here you need to explain:

    1. EXE file is the installation version under Windows system
    2. ZIP file is a compressed version under Windows system
    3. tar.gz files are installed under the Linux operating system

Unzip and get one.

3.2 Description of the catalogue

3.3 Start test

Now, you can go to the browser to access the local port 8080:

OK, success.

Iii. Pre-installation and error-shooting instructions

1. Install the JDK before installing, and configure the environment variables.

Please Baidu for specific.

2. Error description View

This needs to use the log folder mentioned above.

Logs folder for Tomcat log files, open the Logs folder, you can see the log file inside, which has a "catalina.yyyy-mm-dd.log" form named log file, for example " Catalina.2016-11-13.log "Log files are the records of the day that Tomcat server 2016-11-13 is running.

Javaweb--tomcat Installation and catalogue introduction

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.