Tomcat installation, configuration, and deployment

Source: Internet
Author: User

 

 

                                                   

 

 

Conf: stores the configuration file of the Tomcat server. The most important is the server. xml file;
Logs: stores the log files of the Tomcat server;
Temp: stores temporary files during Tomcat running;
Webapps: web application release directory;
Work: Tomcat's working directory. By default, the servlet files generated by compiling JSP files are stored in this directory;
Lib: stores the JAR files that Tomcat servers and all Web applications need to access.

 

  

 


So, can I directly publish the web Project to the Tomcat webapps directory when Eclipse starts the Tomcat server? Of course. However, before that, we did not ask where to release the project in Eclipse? In fact, Eclipse Automatically releases the Web Project to the current workspace by default 【. metadata \. plugins \ org. eclipse. wst. server. under the core \ tmp0 \ wtpwebapps folder, you can find it in the workspace, and you will soon find the Web project folder you created. For example, my Web project name is [DynamicWebProject01 ]. Then, the folder will contain all the content of the Web project, such as: folder [META-INF, WEB-INF], create. JSP files, WEB-INF files under the classes, lib and other folders and web. xml. Among them, there are compiled Java classes under classes.

 

, Copy to the webapps of Tomcat.


,



http://localhost:8080/webdemo

The file content is the same as that of the second method. The parameter meaning is the same.

The three deployment methods have their own advantages and disadvantages.

 

 

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.