將 tomcat 整合到 apache

下載mod_jk2
下載位置:http://ftp.cis.nctu.edu.tw/data/apache/jakarta/tomcat-connectors/jk2/source/
http://ftp.cis.nctu.edu.tw/data/apache/jakarta/tomcat-connectors/jk2/source/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

編譯Jakarta-Tomcat-connectors 2

[root@localhost tmp]# tar -zxvf /home/bruce/linux/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
[root@localhost tmp]# cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/
[root@localhost native2]# chmod a+x buildconf.sh
[root@localhost native2]# ./buildconf.sh
[root@localhost native2]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs
[root@localhost native2]# make
[root@localhost native2]# cp /tmp/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/.libs/mod_jk2.so /usr/local/apache2/modules/mod_jk2.so
[root@localhost native2]# cp /tmp/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/conf/workers2.properties /usr/local/apache2/conf/workers2.properties

編輯 httpd.conf
尋找DSO
加入LoadModule jk2_module modules/mod_jk2.so

編輯 workers2.properties
修改最下面的example及servlets

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

重新啟動tomcat及apache即完成整合
引用通告地址: 點擊獲取引用地址
評論: 3 | 引用: 3 | 閱讀: 2402 | 列印
wef [ 2011-04-14 07:28 | 回覆 | 編輯 刪除 ]
He shouts of let all impatient, who all wow gold want to sleep again for a brief moment, even if it is a few seconds of time. cheap wow gold In and rest after more than one hour, three knights along with the south, near anduo Hal gallop avenue, and I really don't know what would be waiting for them.
Ahan [ 2008-05-28 14:31 | 回覆 | 編輯 刪除 ]
我想這個網址可以為你的問題提供解答...

http://blog.pixnet.net/abpop23/post/9901096
morris [ 2008-05-27 10:21 | 回覆 | 編輯 刪除 ]
請問在已啟動IIS與tomcat的主機上仍能安裝php的網站嗎

我現在的網站主機有啟動IIS(網站用),也有安裝TOMCAT(我想關閉),而我現在預計要安裝PHP當作未來的網站,請問我可以安裝什麼樣的程式,或是是否要移除什麼程式已能讓我的系統能夠順利開始PHP的網站呢

如果能替我解答,那就太謝謝了
  • 1 
發表評論
暱 稱: 密 碼:
網 址: E - mail:
驗證碼: 驗證碼圖片 選 項:
內 容: