"Tomcat" Tomcat Configuration and description

Source: Internet
Author: User
Tags win32 tomcat tomcat server
1. Download Tomcat

On the Tomcat website, download the required version of the Tomcat server:
https://tomcat.apache.org/download-80.cgi
2. Unzip the downloaded Tomcat (i downloaded the 8.5 version of Tomcat)

3. Configuring Tomcat's environment Variables

Environment variables are some of your addresses, but these are the addresses that can be changed, so called variables; the environment variables of Tomcat we set the environment variables for the 8.5 version just now:

① single "Start" button;
② Find and right-click on "Computer" in the Start Menu and select "Properties (R)"

③ in the pop-up window to find "Advanced system settings", in the pop-up window to select the "Advanced" column under "Environment variable (N) ..."

④ "New (W) ..." found under "System variable (S)" In the "Environment variables" window that was bounced.

⑤ Enter in the input box after the "variable name (N):" Of the "edit system Variable" that pops up:

Catalina_home

In the "Variable Value (V):" Input box, enter the specific, your Tomcat decompression package home directory, to apache-tomcat-8.5.27, not to the bin directory, then click "OK";

⑥ again "new (W) ..." a "catalina_base" variable name, the value of the variable can be set to the apche-tomcat-8.5.27 installation home directory, can also be set to another Tomcat directory;

⑦ in "System variables (S)", find the variable named "Path" of the environment variable, in his variable value added:

%catalina_home%\lib;%catalina_home%\bin;
4, about the difference between Catalina_home and Catalina_base

First crossing a paragraph of the net:

Directories and Files throughout the docs, you ' ll notice there is numerous references to $CATALINA _home. This represents the root of your Tomcat installation. When we say, "This information can be the root of your Tomcat install. Optionally, Tomcat May is configured for multiple instances by defining $CATALINA _base for each instance.

If multiple instances is isn't configured, $CATALINA _base is the same as $CATALINA _home. Folders and files to browse these files, you can find many are related to $catalina_home; This represents the root directory of your Tomcat installation; When we say, "This information can be found in your $catalina_home/readme.txt file", which means You can find README.txt this file in the root directory of the Tomcat installation; Typically, Tomcat can configure multiple Tomcat instances by configuring $catalina_base for each instance, and if multiple instances are not configured, $CATALINA _base Same as $CATALINA _home configuration; These is some of the key Tomcat directories: Here are some of the key folders for Tomcat: 1. /bin-startup, shutdown, and other scripts. The *.sh files (for Unix systems) is functional duplicates of the *.bat files (for Windows systems). Since the Win32 command-line lacks certain functionality, there is some additional files in here. "1, Bin folder": Contains to start, close and some other scripts; the file with the suffix sh is for UNIX systems, and the bat suffix is used for Windows systems; Since the WIN32 command line lacks some functionality, some additional files are stored in the bin directory; 2. /conf-configuration files and related DTDs. The most important file in this is Server.xml.
It's the main configuration file for the container. "2, Conf folder": Configuration file and associated DTD file. The most important document in this area is server.xml. This is the primary configuration file for the container; 3.
/logs-log files is here by default. "3, Logs folder" default log file (Author: Used to store the default printing of some log information) 4.
/webapps-this is where your webapps go.
 "4, WebApps folder": Here is where your web app is stored;

This shows that Catalina_home is the most orthodox root directory, and Catalina_base is based on the various tomcat copies, and generally, we do not easily move catalina_home, but in different instances, to change the catalina_base; Catalina_home: Is the main base, is the base camp, is the headquarters, Catalina_base: is the sub-base, is the branch office, is the branch;

Therefore, do not easily change the headquarters of the information, you can change the location of the environment variables; 5, Catalina_home and Tomcat_home differences

The summary on the forum is this:

Tomcat30 with Tomcat_home, can not use Catalina_home
tomcat4.05.0 after Catalina_home and Tomcat_home.

It is recommended to use the catalina_home that is responsible for the technical layer, if you encounter some old tomcat, you can change a tomcat_home, 6, the difference between Tomcat and Catalina

Tomcat and Catalina differences: Tomcat is primarily responsible for the business layer, and Catalina is primarily responsible for the technical layer; like a British, Tomcat is the Queen of England, Catalina is the Prime Minister of the United Kingdom; business matters, usually with Tomcat, specifically to technology, We use Catalina to name it;

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.