TongWeb7 Apache 集群搭建及问题详细解决步骤

本文详细介绍了如何在Linux环境下搭建TongWeb7与Apache的集群,包括Apache的安装、JK插件配置、httpd.conf与mod_jk.conf的修改、workers.properties的设置以及session亲和配置。遇到的问题包括Apache配置错误和JK插件编译问题,通过指定系统架构参数和安装依赖解决。最后,验证Apache集群配置并启动,完成TongWeb7集群配置。
摘要由CSDN通过智能技术生成

先介绍下Tongweb的集群概念:
TongWeb7 的集群是通过 Apache 来实现的,当客户端请求访问 Apache 时,Apache 会将请求按一定比例转发到后台多个TongWeb7节点 上,当其中一个 TongWeb7 节点出现问题时,其余 TongWeb7 还可以继续接收客户端的请求。
在这里插入图片描述
安装包准备:
Apache:httpd-2.2.15.tar.gz
JK 插 件:jakarta-tomcat-connectors-1.2.15-src.tar.gz
TongWeb:Install_TW7...*_Enterprise_Linux.bin

一:Apache安装:

apache 的下载网址 http://httpd.apache.org/,下载 httpd-2.2.15.tar.gz;
运行如下命令解压 Apache 安装包:
$tar -zxvf httpd-2.2.15.tar.gz
检测系统是否已安装httpd
$rpm -aq |grep httpd
若已安装httpd,先卸载(系统自带的httpd无apxs 工具,apxs 工具需要通过安装包安装才有)
$yum remove httpd
创建Apache安装目录:
$mkdir /root/Tongweb7/apache
进入httpd解压目录
$./configure --prefix=/root/Tongweb7/apache --enable-modules=most --enable-mods-shared=all --enable-so
#默认是 prefork 模式的,如果想要 worker 模式,则为:
$./configure -prefix=/root/Tonngweb7/apache --enable-modules=most --enable-mods-shared=all #–enable-so --with-mpm=worker
问题一:
报错信息:
checking build system type… configure: error: cannot guess build type; you must specify one
*
解决方法:加一个参数 --build=arm-linux (这里arm是系统架构,根据实际系统架构填写),我用到的系统是mips64架构,执行命令如下:
$./configure --prefix=/root/Tongweb7/apache --enable-mo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值