操作說明
安裝完tomcat6後,你可以在bin路徑看到 tomcat6.exe與 tomcat6w.exe。
tomcat6.exe負責啟動Tomcat service application
tomcat6w.exe則提供許多cmd指令來監控tomcat,請使用管理員權限打開命令提示字元,即可正常使用指令集。
編輯組態檔
tomcat6w.exe //ES//
tomcat6w.exe //ES//
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/local/TOMCAT/logs/heap-$(date +%Y-%m%d-%H%M).dump"
<session-config>
<session-timeout>5</session-timeout>
</session-config>
如果要設定成秒數的話要另外實作,根據下述的資料參考
<xml version="1.0" encoding="UTF-8"?>
<Context >
<Resource
name="jdbc/資料表連接名稱"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="密碼"
driverClassName="com.mysql.jdbc.Driver"
autoReconnect="true"
removeAbandoned="true"
removeAbandonedTimeout="300"
logAbandoned="false"
url="jdbc:mysql://遠端IP:3306/資料庫名稱"/>
Context>