[Tomcat] tomcat brief introduction, installation and startup (1), tomcat Brief Introduction

Source: Internet
Author: User

[Tomcat] tomcat brief introduction, installation and startup (1), tomcat Brief Introduction

One of the most senior dead programmers, I often use tomcat at work, but I have never done any in-depth summary. It is really a sin. Starting from this blog post, we will have an in-depth study of tomcat. First, we will learn how to use it, and then we will take a look at the source code of tomcat. Let's go straight to the question:

Tomcat introduction:

Tomcat is a core project in the Jakarta project of the Apache Software Foundation. It is developed by Apache, Sun, and other companies and individuals. With Sun's participation and support, the latest Servlet and JSP specifications can always be reflected in Tomcat. Because of the advanced Tomcat technology, stable performance, and free of charge, Tomcat is favored by Java enthusiasts and recognized by some software developers. It has become a popular Web application server. At present, the latest version is 8.0.

The Tomcat server is a free open-source Web application server, which is a lightweight application server. It is widely used in small and medium systems and concurrent users, is the first choice for developing and debugging JSP programs. For a beginner, it can be thought that when an Apache server is configured on a machine, it can be used to respond to access requests on the HTML (an application under the standard General Markup Language) page. In fact, Tomcat is an extension of the Apache server, but it runs independently. Therefore, when you run tomcat, it actually runs independently as a process independent of Apache.

To be honest about this part, there are a lot of online content. You just need to check more information.

Official tomcat website

Home: http://tomcat.apache.org/index.html

After entering the home page, you can see three stable versions of tomcat: tomcat6.x, tomcat7.x, and tomcat8.x. 6.xand 7.xare often used in enterprises. General enterprises do not blindly pursue the latest version, the latest version may be unstable, and version changes will increase learning costs.

Tomcat installation version

Tomcat has two versions:
1. Normal installation version (Service version): executable file. After installation, the service will be registered in the system.

These are two different Download versions. One is a normal installation version and the other is a decompressed installation version. The usage is the same, but there are some interfaces in the general installation version that can provide quick settings for Tomcat, and the general installation will register Tomcat as a system service, only one tomcat can be installed, sometimes we need multiple tomcat servers at the same time, so we recommend that you use the decompressed version for easy installation and convenience.

Note: before installing tomcat, you need to install JDK 1.6 or 1.7. You can use JDK 1.8. You 'd better use JDK 1.7.
(JDK installation and configuration tutorial) [http://jingyan.baidu.com/article/bea41d435bc695b4c41be648.html]

Tomcat directory introduction:

This article introduces the tomcat6.x or 7.x Directory, which is greatly changed after 6.0 compared with the 5.0 directory.

Directory structure

That is:
/Bin: Stores script files for starting and disabling Tomcat on windows or Linux platforms

/Conf: Stores various global configuration files of the Tomcat server. The most important among them are server. xml and web. xml.

/Lib: Stores all the required jar files (integrating all the jar files under the common/share/server Directory in tomcat5.5)

/Logs: Stores the log files during Tomcat execution.

/Temp: Stores temporary files generated during Tomcat running.

/Webapps: Tomcat's main Web publishing directory. By default, Web application files are stored in this directory.

/Work: Stores the class files generated after JSP compilation.

Start Tomcat

Find the tomcat installation directory. In the/bin directory, start the start. up script in windows and start the start. sh file in linux. When the following page is displayed, it indicates that tomcat has been started successfully.

In the browser, visit tomcat: enter (http: // localhost: 8080/) [http: // localhost: 8080, now we can see the tomcat page.

NOTE: If tomcat cannot be started normally, there are two main reasons:
1. Verify that jdk is successfully installed. For example, jdk is successfully installed. Otherwise, reinstall jdk.

2. The port number is occupied:
The default port number of tomcat is 8080. If other software occupies this port, tomcat cannot be started;
Solution:
Use FPort and other software to check port usage and kill the process;

A little tired. Let's continue in the next blog. Next we will introduce tomcat and eclipse integration and startup.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.