將 tomcat 整合到 apache
作者: Ahan 日期: 2005-03-09 22:14
下載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即完成整合
下載位置: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即完成整合
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.
發表評論
訂閱
上一篇
返回
下一篇
