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

Ensure that the JDK environment is correctly configured. Download the Tomcat installation package from the official website. Decompress the installation package and integrate it into the compilation tool

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. Decompress →

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 product: lezijie006 (code 12)

extension

Tomcat directory Structure

Bin: starts and closes the tomcat bat file conf: Configuration file server. XML This file is used to configure server-related information, such as the port number for starting Tomcat. Configure the web. XML file and the Web application (a web application is equivalent to a Web site) tomcat-user. XML configure the user name, password and permissions. When we need to view the log, we can query the information webapps: place our Web application work working directory: Tomcat Window→ Preferences →Server→Runtime The Environment – add – apache tomcat — 8.0.23