參考資料 Source: http://eoffice.im.fju.edu.tw/phpbb/viewtopic.php?t=6603
如果需要設定調整 Apache Tomcat :
(增加 或 刪除某些 worker 專案)
觀察 tomcat/conf/server.xml 內容
HTTP 使用了
Connector port="8080"
AJP 使用了
Connector port="8009"
觀察 apache/conf/httpd.conf 內容
確認好以下:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "conf/workers.properties"
JkShmFile "modules/mod_jk.shm"
JkLogFile "logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkMount /test/* worker1
JkMount /mrs/* worker2
...
觀察 workers.properties
例如要增添 worker2
worker.list=worker1, worker2
worker.worker1.type=ajp13
worker.worker1.host = localhost
worker.worker1.port = 8009
worker.worker1.socket_timeout = 60
worker.worker1.mount = /test /test/*
worker.worker2.type=ajp13
worker.worker2.host = localhost
worker.worker2.port = 8009
worker.worker2.socket_timeout = 60
worker.worker2.mount = /mrs /mrs/*
沒有留言:
張貼留言