<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Dict.CN 在線詞典, 英語學習, 在線翻譯

    都市淘沙者

    荔枝FM Everyone can be host

    統計

    留言簿(23)

    積分與排名

    優秀學習網站

    友情連接

    閱讀排行榜

    評論排行榜

    Resin定時備份日志

    通過設置resin.conf文件來實現將日志以每日或每周的方式來存放,以便查看日志信息,
    具體操作很簡單,只需要參看紅色字體位置的說明設置即可(共兩處)

    <!--
       - Resin 3.0 configuration file.
      -->
    <resin xmlns="       xmlns:resin="  <!--
         - Logging configuration for the JDK logging API.
        -->
      <log name="" level="info" path="stdout:" timestamp="[%H:%M:%S.%s] "/>
      <log name="com.caucho.java" level="config" path="stdout:"
           timestamp="[%H:%M:%S.%s] "/>
      <log name="com.caucho.loader" level="config" path="stdout:"
           timestamp="[%H:%M:%S.%s] "/>

    <!--備份每日日志,并且壓縮為.gz格式文件減少占用容量,如果一周備份一次則需要將“1D”改為“1W”-->
    <log name="" level="info" path="log/stdout.log" timestamp="[%H:%M:%S.%s] "
         archive-format="stdout.log.%Y-%m-%d.gz"
         rollover-period="1D"/>


      <!--
         - For production sites, change dependency-check-interval to something
         - like 600s, so it only checks for updates every 10 minutes.
        -->
      <dependency-check-interval>2s</dependency-check-interval>

      <!--
         - You can change the compiler to "javac" or jikes.
         - The default is "internal" only because it's the most
         - likely to be available.
        -->
      <javac compiler="internal" args=""/>

      <!-- Security providers.
         - <security-provider>
         -    com.sun.net.ssl.internal.ssl.Provider
         - </security-provider>
        -->

      <!--
         - If starting bin/resin as root on Unix, specify the user name
         - and group name for the web server user.
         -
         - <user-name>resin</user-name>
         - <group-name>resin</group-name>
        -->

      <!--
         - Configures threads shared among all HTTP and SRUN ports.
        -->
      <thread-pool>
        <!-- Maximum number of threads. -->
        <thread-max>1024</thread-max>

        <!-- Minimum number of spare connection threads. -->
        <spare-thread-min>25</spare-thread-min>
      </thread-pool>

      <!--
         - Configures the minimum free memory allowed before Resin
         - will force a restart.
        -->
      <min-free-memory>1M</min-free-memory>

      <server>
        <!-- adds all .jar files under the resin/lib directory -->
        <class-loader>
          <tree-loader path="${resin.home}/lib"/>
          <tree-loader path="${server.root}/lib"/>
        </class-loader>

        <!-- Configures the keepalive -->
        <keepalive-max>500</keepalive-max>
        <keepalive-timeout>120s</keepalive-timeout>

        <resin:if test="${resin.isProfessional()}">
          <select-manager enable="true"/>
        </resin:if>

        <!-- listen to the http ports only after the server has started. -->
        <bind-ports-after-start/>

        <!-- The http port -->
        <http server-id="" host="*" port="6060"/>

        <!--
           - SSL port configuration:
           -
           - <http port="8443">
           -   <openssl>
           -     <certificate-file>keys/gryffindor.crt</certificate-file>
           -     <certificate-key-file>keys/gryffindor.key</certificate-key-file>
           -     <password>test123</password>
           -   </openssl>
           - </http>
          -->

        <!--
           - The local cluster, used for load balancing and distributed
           - backup.
          -->
        <!--cluster>
          <srun server-id="" host="127.0.0.1" port="6806"/>
        </cluster-->

        <!--
           - Configures the persistent store for single-server or clustered
           - in Resin professional.
          -->
        <resin:if test="${resin.isProfessional()}">
          <persistent-store type="cluster">
            <init path="session"/>
          </persistent-store>
        </resin:if>

        <!--
           - Enables/disables exceptions when the browser closes a connection.
          -->
        <ignore-client-disconnect>true</ignore-client-disconnect>

        <!--
           - For security, use a different cookie for SSL sessions.
           - <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
          -->

        <!--
           - Enables the cache (available in Resin Professional)
          -->
        <resin:if test="${isResinProfessional}">
          <cache path="cache" memory-size="8M"/>
        </resin:if>

        <!--
           - Enables periodic checking of the server status.
           -
           - With JDK 1.5, this will ask the JDK to check for deadlocks.
           - All servers can add <url>s to be checked.
          -->
        <resin:if test="${isResinProfessional}">
          <ping>
            <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
          </ping>
        </resin:if>

        <!--
           - Defaults applied to each web-app.
          -->
        <web-app-default>
          <!--
             - Extension library for common jar files.  The ext is safe
             - even for non-classloader aware jars.  The loaded classes
             - will be loaded separately for each web-app, i.e. the class
             - itself will be distinct.
            -->
          <class-loader>
            <tree-loader path="${server.root}/ext-webapp"/>
          </class-loader>

          <!--
             - Sets timeout values for cacheable pages, e.g. static pages.
            -->
          <cache-mapping url-pattern="/" expires="5s"/>
          <cache-mapping url-pattern="*.gif" expires="60s"/>
          <cache-mapping url-pattern="*.jpg" expires="60s"/>

          <!--
             - Servlet to use for directory display.
            -->
          <servlet servlet-name="directory"
                  servlet-class="com.caucho.servlets.DirectoryServlet"/>

          <!--
             - Enable EL expressions in Servlet and Filter init-param
            -->
          <allow-servlet-el/>

          <!--
             - for security, disable session URLs by default.
            -->
          <session-config>
            <enable-url-rewriting>true</enable-url-rewriting>
            <save-only-on-shutdown>true</save-only-on-shutdown>
            <file-store>${resin.home}/webapps</file-store>
            <ignore-serialization-errors>true</ignore-serialization-errors>
          </session-config>

          <!--
             - For security, set the HttpOnly flag in cookies.
             - <cookie-http-only/>
            -->
        </web-app-default>

        <!--
           - Sample database pool configuration
           -
           - The JDBC name is java:comp/env/jdbc/test
             <database>
               <jndi-name>jdbc/mysql</jndi-name>
               <driver type="org.gjt.mm.mysql.Driver">
                 <url>jdbc:mysql://localhost:3306/test</url>
                 <user></user>
                 <password></password>
                </driver>
                <prepared-statement-cache-size>8</prepared-statement-cache-size>
                <max-connections>20</max-connections>
                <max-idle-time>30s</max-idle-time>
              </database>
          -->

        <!--
           - Default host configuration applied to all virtual hosts.
          -->
        <host-default>
          <class-loader>
            <compiling-loader path="webapps-/WEB-INF/classes"/>
            <library-loader path="webapps-/WEB-INF/lib"/>
          </class-loader>

          <!--
             - With another web server, like Apache, this can be commented out
             - because the web server will log this information.
            -->
      <!--查看上面紅色字體的說明
    -->
          <access-log path="logs/access.log" 
                 archive-format="stdout.log.%Y-%m-%d.gz"
                rollover-period="1D"/>
     

          <!-- creates the webapps directory for .war expansion -->
          <web-app-deploy path="webapps-"/>

          <!-- creates the deploy directory for .ear expansion -->
          <ear-deploy path="deploy">
            <ear-default>
              <!-- Configure this for the ejb server
                 -
                 - <ejb-server>
                 -   <config-directory>WEB-INF</config-directory>
                 -   <data-source>jdbc/test</data-source>
                 - </ejb-server>
                -->
            </ear-default>
          </ear-deploy>

          <!-- creates the deploy directory for .rar expansion -->
          <resource-deploy path="deploy"/>

          <!-- creates a second deploy directory for .war expansion -->
          <web-app-deploy path="deploy"/>
        </host-default>

        <!-- includes the web-app-default for default web-app behavior -->
        <resin:import path="${resin.home}/conf/app-default.xml"/>

        <!-- configures a deployment directory for virtual hosts -->
        <host-deploy path="hosts">
          <host-default>
            <resin:import path="host.xml" optional="true"/>
          </host-default>
        </host-deploy>

        <!-- configures the default host, matching any host name -->
        <host id="" root-directory=".">
          <!--
             - configures an explicit root web-app matching the
             - webapp's ROOT
            -->
          <!--web-app id="/" document-directory="webapps/ROOT"/-->

          <!--
             - Administration application /resin-admin
             -
             - password is the md5 hash of the password.
             - localhost is true to limit access to the localhost
            -->
          <resin:set var="resin_admin_password"  default=""/>
          <resin:set var="resin_admin_localhost" default="true"/>

          <!--web-app id="/resin-admin" document-directory="${resin.home}/php/admin"/-->
           <web-app id="/" document-directory="webapps/job">

     
          </web-app>

          <!--web-app id="resin-doc" document-directory="webapps/resin-doc"/-->
        
        </host>
      </server>
    </resin>

     

    posted on 2007-08-08 10:35 都市淘沙者 閱讀(1528) 評論(0)  編輯  收藏 所屬分類: Tomcat/Weblogic/Resin/Jboss

    主站蜘蛛池模板: 四虎成人免费网址在线| 国产成人亚洲综合无码| 国产成人综合亚洲| 亚洲综合无码精品一区二区三区 | 亚洲无人区码一二三码区别图片| 四虎影视免费永久在线观看| 久久国产精品成人免费| 亚洲午夜电影一区二区三区| 国产成人啪精品视频免费网| 久久久久久久99精品免费| 亚洲人成人伊人成综合网无码| 日韩亚洲变态另类中文| 国语成本人片免费av无码| 男女一进一出抽搐免费视频| 亚洲AV综合色区无码二区爱AV| 亚洲人成网站在线观看青青 | 国产亚洲真人做受在线观看| 成人黄动漫画免费网站视频 | 免费av欧美国产在钱| 久久久久久久久久免免费精品| 亚洲一区二区三区不卡在线播放 | 亚洲成a人片在线观看中文app | 亚洲片一区二区三区| 日本XXX黄区免费看| 国产A∨免费精品视频| 亚洲va在线va天堂va手机| 亚洲av中文无码乱人伦在线播放| 国产成人免费a在线视频色戒| 最近中文字幕mv免费高清在线| 一区视频免费观看| 亚洲男同gay片| 亚洲成人免费网址| 亚洲AV无码精品色午夜果冻不卡| 国产一区视频在线免费观看| 午夜福利不卡片在线播放免费| 无码国产精品一区二区免费式芒果| 高潮内射免费看片| 成人精品国产亚洲欧洲| 亚洲熟女乱色一区二区三区| 亚洲色欲或者高潮影院| 久热综合在线亚洲精品|