zoukankan      html  css  js  c++  java
  • 深入刨析tomcat 之---第13篇 tomcat的三种部署方法

    writedby 张艳涛

    一般我们都知道将web 应用打成war包,放到tomcat的webapp目录下,就是部署了,这是部署方法1

    第2种部署方法我们也知道,就是讲web应用的文件夹拷贝到webapp目录下,

    这种部署方法就是eclipse的部署方式,不过eclipse会将tomcat 的catalina.base 和catalina.home设置为自己制定的路径,那么webapp就会在指定的目录下,而不是

    tomcat安装目录的文件夹下...

    第3种部署方式,

    对应的代码为

    贴下这个admin.xml中的内容

    <Context path="/admin" docBase="../server/webapps/admin"
            debug="0" privileged="true">
    
      <!-- Uncomment this Valve to limit access to the Admin app to localhost
       for obvious security reasons. Allow may be a comma-separated list of
       hosts (or even regular expressions).
      <Valve className="org.apache.catalina.valves.RemoteAddrValve"
        allow="127.0.0.1"/>
      -->
    
      <Logger className="org.apache.catalina.logger.FileLogger"
                 prefix="localhost_admin_log." suffix=".txt"
              timestamp="true"/>
    
    </Context>

    以上是基于tomcat4,以后的版本没有研究

  • 相关阅读:
    扫描线
    Assign the task HDU
    Can you answer these queries? HDU
    Tunnel Warfare HDU
    Mayor's posters POJ
    not friendly,
    招财铃:即时通信 openfire ,
    不再是可怕的汇编,
    转:宏指令,
    build path,
  • 原文地址:https://www.cnblogs.com/zytcomeon/p/15014342.html
Copyright © 2011-2022 走看看