请大家帮帮忙,关于Apache和Tomcat整合的问题
Ivene 2007-12-04 04:28:36 环境
-rw-r--r-- 1 root root 6034852 Dec 4 2007 apache-tomcat-5.5.25.tar.gz
-rw-r--r-- 1 root root 6365535 Mar 28 2007 httpd-2.2.4.tar.gz
-rwxr--r-- 1 root root 62678298 Aug 23 22:24 jdk-6-linux-i586.bin
-rw-r--r-- 1 root root 1426003 Dec 4 2007 tomcat-connectors-1.2.25-src.tar.gz
apache install
./configure --prefix=/usr/local/apache2 --enable-module=most --enable-shared=max --enable-so
make
make install
/usr/local/apache2/bin/apachectl start It's Work!!
tomcat install
mv apache-tomcat-5.5.25 /usr/local/tomcat
/usr/local/tomcat/bin/startup.sh 正常工作
connectors
tar -zxvf tomcat-connectors-1.2.25-src.tar.gz
第一次 我从网上看的 apache2 以上的服务器 用 --with-apxs2 于是
./configure --with-apxs2=/usr/local/apache2/bin/apxs
提示
no apache given
no netscape given
configure: error: Cannot find the WebServer
./configure --help
发现根本没有 --with-apxs2 于是
./configure --with-apxs=/usr/local/apache2/bin/apxs
Ok
make
有警告
Warning! dlname not found in /home/yaoyao/tomcat-connectors-1.2.25-src/native/apache-2.0/mod_jk.la.
make install
有错误
Warning! dlname not found in /usr/local/apache2/modules/mod_jk.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/mod_jk.so
chmod: cannot access `/usr/local/apache2/modules/mod_jk.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make[1]: *** [install_dynamic] Error 1
make[1]: Leaving directory `/home/yaoyao/tomcat-connectors-1.2.25-src/native/apache-2.0'
make: *** [install-recursive] Error 1
请大家帮帮忙,为什么会这样????