首页 > 网站 > 建站经验 > 正文

Apache 安装和使用文档

2019-11-02 16:25:41
字体:
来源:转载
供稿:网友
一、准备工作:

1台PC机,安装linux操作系统 参考文档linux安装.docx

2 gcc的安装 参考文档gcc的安装.zip

3 apache的安装包httpd-2.0.63.tar.gz

二、安装aoache:

#cd /opt

#gunzip httpd-2.0.63.tar.gz

#tar xvf httpd-2.0.63.tar

#cd httpd-2.0.63

#./configure --prefix=/opt/apache2 enable-so enable-proxy enable-proxy-ajp enable-proxy-http enable-proxy-ftp enable-proxy-connect enable-proxy-balancer

#make

#make install

注意:1路径,要安装到/opt/apache2下

2 在make执行的时候可能会报缺少文件,那是因为linux没有安装gcc,所以要先安装gcc,gcc的安装参考《gcc的安装.zip》

三、补充apache缺少的文件

以上执行完毕后,把mod_wl_20.so这个文件copy到/opt/apache2/moules下

mode_wl_20.so可以在bea /server/lib/linux/i686下找到

四、配置apache

Apache的配置文件在/opt/apache2/conf/httpd.conf,找到Listen 80这一行,在下面添加以下内容。

Include conf/weblogic.conf

在conf下新建一个文件:weblogic.conf,里面配置如下。

LoadModule weblogic_module modules/mod_wl_20.so

<Location /ACS-server/ACS>

SetHandler weblogic-handler

WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

Debug ALL

WLTempDir "/opt/apache2/logs"

DebugConfigInfo ON

DynamicServerList OFF

</Location>

<Location /ACS-server/hnmACS>

SetHandler weblogic-handler

WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

Debug ALL

WLTempDir "/opt/apache2/logs"

DebugConfigInfo ON

DynamicServerList OFF

</Location>

<Location /csr>

SetHandler weblogic-handler

WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

Debug ALL

WLTempDir "/opt/apache2/logs"

DebugConfigInfo ON

DynamicServerList OFF

</Location>

<Location /report>

SetHandler weblogic-handler

WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

Debug ALL

WLTempDir "/opt/apache2/logs"

DebugConfigInfo ON

DynamicServerList OFF

</Location>

<Location /hdm>

SetHandler weblogic-handler

WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

Debug ALL

WLTempDir "/opt/apache2/logs"

DebugConfigInfo ON

# DynamicServerList OFF

</Location>

<IfModule mod_weblogic.c>

#Include conf/Weblogic.conf

WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

MatchExpression *.jsp

MatchExpression *.do

Debug ALL

WLLogFile logs/wlAcess_mimm.log

WLTempDir "/opt/apache2/logs"

# StatPath true

DebugConfigInfo ON

KeepAliveEnabled True

KeepAliveSecs 15

</IfModule>

五、运行和测试

#cd /opt/apache2/bin

#./apachectl start

启动apache

如果你输入http://apache所在IP/hdm 可以访问到14和17上部署的hdm,那么就证明已经配置成功了!
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表