先介绍下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