"Tomcat" Tomcat simple introduction, Installation and startup (i)

Source: Internet
Author: User

The most senior of the hanged Ape, in the work, often use Tomcat, but never done in-depth summary, it is a sin. Starting with this blog post, we have an in-depth study of Tomcat, first basic use of learning, and then we'll look at Tomcat's source code section. Not much to say, we go straight to the point:

About Tomcat:

Tomcat is a core project of the Apache Software Foundation (Apache Software Foundation) 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 reflected in Tomcat. Because of the advanced Tomcat technology, stable performance, and free, so deeply loved by Java enthusiasts and have been recognized by some software developers, become the most popular Web application server. The latest version is now 8.0.

Tomcat server is a free open source Web application server, belongs to the lightweight application server, in small and medium-sized systems and concurrent access users are not widely used, is the first choice to develop and debug JSP programs. For a beginner, it can be thought that when the Apache server is configured on a single machine, it can respond to requests for access to the HTML (one application under the standard Universal Markup Language) page. The tomcat part is actually an extension of the Apache server, but it runs independently, so when you run Tomcat, it actually runs separately as a separate process from Apache.

This part of the content to tell the truth, many online, no longer say, we look more information on the good.

Tomcat official website

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

After entering the homepage, you can see the three stable versions of Tomcat: tomcat6.x, tomcat7.x, tomcat8.x. Often used in the enterprise is 6.x,7.x, the general enterprise will not blindly pursue the newest, the latest edition may be unstable, and version changes will increase the cost of learning and so on.

Tomcat installation version

There are two versions of Tomcat:
1. Normal installation version (service version): Executable file, after installation, the service will be registered in the system.

    1. Decompression version (binary plate): the need to configure environment variables after decompression, it is recommended to use this version.

Here are two different versions of the download, one for the normal installation and one for the unzip installation version. Use is the same, but in the normal installation version of some interface to provide the shortcut settings for Tomcat, and the normal installation will be Tomcat as a system service to register, can only install a tomcat, sometimes we need multiple tomcat at the same time, so it is recommended to use the decompression version, easy to install, Convenient.

Note: Before installing Tomcat, you need to install JDK1.6 or 1.7 can, I use the jdk1.8, the best you still use jdk1.7, the others are the same.
(JDK installation configuration tutorial) [Http://jingyan.baidu.com/article/bea41d435bc695b4c41be648.html]

The Tomcat directory describes:

Our article describes a directory of tomcat6.x or 7.x, with a larger change after 6.0 compared to the 5.0 version of the directory.

Directory structure

That
/bin: script file to start and close Tomcat on a Windows or Linux platform

/conf: A variety of global configuration files for the Tomcat server, the most important of which is server.xml and Web. xml

/lib: Store All the jar files needed (all the jars in the Common/share/server three directories of the original tomcat5.5 are consolidated)

/logs: Storing log files for tomcat execution

/temp: Storing temporary files generated by Tomcat runtime

/webapps: Tomcat's main Web publishing directory, where Web application files are put in this directory by default

/work: Store the class file generated by JSP compilation

Tomcat Boot

Locate the Tomcat installation directory, under the/bin directory, the Windows system starts the Start.up script, the Linux system launches the start.sh file, and when you see the following interface, the name Tomcat has started successfully.

Here we have a look at Tomcat in the browser: input (http://localhost:8080/) [http://localhost:8080/], at which point we can see the Tomcat page.

Note: If Tomcat does not start properly, there are two main reasons:
1. Verify that the JDK was installed successfully, such as if the JDK was successfully installed or reinstalled.

2. Port number is occupied problem:
The default port number for Tomcat is 8080, which causes Tomcat to fail to boot if additional software is used for this port;
Solution:
Use FPort and other software to view port usage, then kill the process;

A little tired, the next blog post we continue. In the next chapter we begin to introduce the integration of Tomcat and Eclipse, and launch.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Tomcat" Tomcat simple introduction, Installation and startup (i)

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.