Tomcat is a minimum WEB container in line with JavaEE WEB standards, all JSP procedures must have the support of the WEB container to run, and in the given WEB container will support transaction processing operations.

Tomcat is provided by Apache (www.apache.org), you can use the installation version and decompression version, installation version can appear in the service of a Tomcat service, no installation, the development of the use of free installation version. Tomcat is simply a web server running Java. At the bottom is a program of Socket. It is also a container of JSP and Servlet. Tomcat is a core project of the Apache Software Foundation’s Jakarta project, developed by Apache, Sun, and other companies and individuals.

With Sun’s involvement and support, the latest Servlet and JSP specifications are always present in Tomcat. Because of its advanced technology, stable performance, and free, Tomcat is deeply loved by Java enthusiasts and recognized by some software developers, and has become a popular Web application server.

Tomcat server is a free open source Web application server, belongs to lightweight application server, in small and medium-sized systems and concurrent access users are not many occasions is widely used, is the first choice for developing and debugging JSP programs. For starters, you can assume that when the Apache server is configured on a machine, you can use it to respond to requests for HTML (an application in standard Common Markup Language) pages. Actually Tomcat is partially an extension of the Apache server, but it runs on its own, so when you run Tomcat, it actually runs as a separate process from Apache.

When configured correctly, Apache serves HTML pages, while Tomcat actually runs JSP pages and servlets. In addition, Tomcat, like Web servers such as IIS, has the ability to process HTML pages, and it is also a Servlet and JSP container. A separate Servlet container is the default mode of Tomcat. However, Tomcat does not handle static HTML as well as the Apache server. The latest Version of Tomcat is 9.0.

Tomcat Installation Mode

  • Make sure the JDK environment is configured correctly
  • Download the Tomcat installation package from the official website
  • Decompress the installation package
  • Integration into compilation tools

A case in field

JDK support is required to run Tomcat (Tomcat will find the required JDK through JAVA_HOME). Installation is the decompression process. Start Tomcat and it is installed if you can access it

1. Unpack

2. View the index.html or index.jsp file in the ROOT directory

Tomcat7:404 tomcat7:404 tomcat7:404 tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 Tomcat7:404 If not, manually add an HTML file or copy a JSP somewhere else, and you can access the page then the configuration is successful.

3. Start Tomcat (use the command line to start Tomcat in the bin directory of Tomcat installation directory)

The startup window cannot be closed after startup

4. Open the browser and enter http://localhost:8080/

OK, Tomcat is successfully installed.

5. Stop Tomcat (use the command line to stop Tomcat in the bin directory of Tomcat’s installation directory)

PS: Access to learning resources Technical dry products: Lezijie003 (code 123)

extension

Tomcat directory Structure

  1. Bin: starts and closes the Bat file of Tomcat
  2. The conf: Configuration file server. XML This file is used to configure server-related information, such as the port number for starting Tomcat. Host web. XML file Configuration and Web applications (A Web application is equivalent to a Web site) Tomcat-user. XML configures user names, passwords, and permissions.
  3. Lib: This directory houses the JAR packages needed to run tomcat
  4. Logs: Stores logs. When we need to view logs, we can query information
  5. Webapps: Place our Web applications
  6. Work directory: This directory is used to store the corresponding server files and.class files generated after the JSP is accessed

The Eclipse associated Tomcat

The Window – > preferences – > Server – the Runtime Environment – add – apache tomcat — 8.0.23

For more information source welcome add V :lezijie003, verification information 123 oh, without verification information will not be passed ah ~~~