zoukankan      html  css  js  c++  java
  • Tomcat introduction

    Container

    Container carrying various logic unit and the runtime data. The Tomcat container is divided into 4 levels. The following: 

    The segmentation module, the Tomcat is very robust, through some configuration and module can be customized, extended Tomcat greatly limit. 
    In a typical page access as an example, assume that URL is access

    Details of each container is shown in Figure. 


     
     

    Wrapper encapsulates specific access to resources, such as index.html
    Context encapsulates a set of various wrapper resources, such as app
    Host encapsulates a set of various context resources, such as www.mydomain.com

    Starting process

    The startup logic Tomcat is based on the observer design pattern, all containers will inherit the Lifecycle interface, it managers container throughout the life cycle, all containers to modify and change of state will go by it the notification has been registered observers(Listener)
    The timing diagram for Tomcat start




     

    The Tomcat configuration

    Tomcat includes the configuration file includes

      1. server.xml
        Tomcat the main configuration file
      2. context.xml
        The default context configuration, applicable to all configuration Tomcat installed all hosts
      3. web.xml
        The default web.xml
      4. catalina.policy
        JAVA security policy file


     

    https://www.programering.com/a/MjM4cjMwATY.html

  • 相关阅读:
    k8s使用私有镜像仓库
    spark client 配置lzo
    jvm系列(四):jvm调优-命令篇
    mysqldump 备份还原数据库
    df 卡死及ls无法查看文件
    记录一次服务器断电,直接进入救援模式
    nginx开机自启脚本
    mongodb启动关闭脚本
    mongo数据备份恢复
    centos 快速配置网络
  • 原文地址:https://www.cnblogs.com/feng9exe/p/12084875.html
Copyright © 2011-2022 走看看