tomcat

2017-01-02  本文已影响7人  大批

一只名为Catalina的猫

Catalina

启动和停止


服务器端口配置


日志相关


项目目录


创建一个名为empty_project的java项目


配置外部工程(将F盘的java工程配置到tomcat里面去)

  <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
          //给host添加一个context节点,这个就是配置外部工程到tomecat
        <Context path="/ep" docBase="F:\empty_project" reloadable="true"/>
        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/>

      </Host>

Nothing is certain in this life. The only thing i know for sure is that. I love you and my life. That is the only thing i know. have a good day

:)

上一篇 下一篇

猜你喜欢

热点阅读