LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1694|回复: 16

急需apache和tomcat的连接器jakarta-tomcat-connectors 在线等!

[复制链接]
发表于 2004-4-19 20:28:51 | 显示全部楼层 |阅读模式
我的apache版本是2.0.48
tomcat的版本是5.0.19
寻找适合它们的连接器jakarta-tomcat-connectors的版本及下载地址
我找了个jakarta-tomcat-connectors-4.1.30-src.tar.gz
可在最后时告诉我版本不支持
在线等!
[root@localhost conf.d]# apachectl configtest
httpd: module "mod_webapp.c" is not compatible with this version of Apache.
Please contact the vendor for the correct version.
发表于 2004-4-19 22:21:47 | 显示全部楼层
 楼主| 发表于 2004-4-19 23:27:12 | 显示全部楼层
最初由 yeseek 发表
你需要5。0。19的连接器。
http://apache.linuxforum.net/dis ... -src-current.tar.gz


非常感谢!
:thank :thank :thank

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-4-19 23:48:36 | 显示全部楼层
最初由 yeseek 发表
你需要5。0。19的连接器。
http://apache.linuxforum.net/dis ... -src-current.tar.gz



减压完,不会弄了,我看的书上是用的jakarta-tomcat-connectors-4.1.30-src.tar.gz
能说说具体步骤吗?!
谢了
在线等!
:help

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-4-20 01:52:43 | 显示全部楼层

请=一下。我得总结总结

发表于 2004-4-20 02:17:57 | 显示全部楼层

请结合实际情况进行编译。

下载软件到你的安装目录,假设/opt
[root@localhost root]#cd /opt
[root@localhost opt]#tar -xzvf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
[root@localhost opt]#cd jakarta-tomcat-connectors-jk2-2.0.2-src
[root@localhost opt]#cd jk/native2
[root@localhost opt]#chmod +x buildconf.sh
[root@localhost opt]#./configure --with-apxs2=/apache的安装目录/bin/apxs --enable-EAPI
/*这里需要注意一下。比如我的apache安装在/opt/apache,那么我在这里要输入./configure --with-apxs2=/opt/apache/bin/apxs  --enable-EAPI--enable-EAPI,请根据你的安装目录进行操作。*/
[root@localhost opt]#make
[root@localhost opt]#make install
/*到/opt/apache/modules/目录看有没有mod_jk2.so生成。如果没有请copy过去。我是直接将生成文件全部CP过去的。*.so的目录在下边*/

[root@localhost opt]#cd /opt/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2
/* 编辑jk2.properties文件。*/
# list of needed handlers.
handler.list=channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8009
/*编辑http.conf*/
#修改
DocumentRoot "/usr/local/tomcat/webapps"
#添加index.jsp
DirectoryIndex index.html index.html.var index.jsp


LoadModule jk2_module modules/mod_jk2.so


Order deny,allow
Deny from all

#
# Order deny,allow
# Deny from all
#


Order Allow,Deny



ServerName www.home.net
ServerAlias www
ServerAlias localhost
ServerAlias 192.168.0.90
ServerAdmin webmater@xxx.com
DocumentRoot /usr/local/tomcat/webapps

ErrorLog logs/home.net-errorlog
CustomLog logs/home.net-access.log common


JkUriSet worker ajp13:localhost:8009



/*编辑workers2.properties */
# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=/usr/local/apache/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:192.168.0.90/*.jsp]
worker=ajp13:localhost:8009

/*我就记了这么多。原文是在一个论坛上看到的。暂时没有找到。如果能够成功最好,继续关注这个贴。顺便问一下。你使用什么软件开发JSP?或者是Stauts?*/
发表于 2004-4-20 02:32:44 | 显示全部楼层

找到原文.

地址在这里。祝你成功。
http://www.linuxfans.org/nuke/mo ... p=view&sid=1549
 楼主| 发表于 2004-4-20 09:03:55 | 显示全部楼层

回复: 找到原文.

最初由 yeseek 发表
地址在这里。祝你成功。
http://www.linuxfans.org/nuke/mo ... p=view&sid=1549



我真是太感谢你了,谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-4-20 11:09:54 | 显示全部楼层

回复: 找到原文.

最初由 yeseek 发表
地址在这里。祝你成功。
http://www.linuxfans.org/nuke/mo ... p=view&sid=1549


我按照这个链接做了,可还是不行呀

检测apache的配置时还是这样啊
[root@localhost apache2]# apachectl configtest
httpd: module "mod_webapp.c" is not compatible with this version of Apache.
Please contact the vendor for the correct version.

按说应该检测apache的配置吧!!!!?????
在线等!:help :help :help

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-4-20 12:20:00 | 显示全部楼层
是的。需要在
./configure的时候给定几个参数。你应该按照他说的去编译。
不然会出错。

其它你要加上的选项可以随便加。但是他指出的一定要带上。

要保证http.conf配置正确。
不过具我所知,如果使用Status的话,tomcat的web.xml和server.xml要增加特别的语句。具体是什么还不得其解。不然可能会引起冲突。不过这些是后话了。先运转起来再说。
如果有时间,我再重新装一次,看看具体应该注意些什么吧。一时说不好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表