Apache 安装和使用文档

 更新时间:2009年11月26日 00:34:37   作者:  
Apache安装和使用文档
一、准备工作:
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,那么就证明已经配置成功了!
你shutdown14和17的任意一个机器,仍然可以访问
#./apachectl stop
关闭apache


六、注意事项
1、 根据将要布署的应用名要在weblogic.conf中配置一个location
2、 如果安装目录在/opt/apache2的话,可以直接copy现有的weblogic.conf和httpd.conf

相关文章

  • Service Temporarily Unavailable的503错误是怎么回事?

    Service Temporarily Unavailable的503错误是怎么回事?

    一般来说,出现Service Temporarily Unavailable错误多半是因为网站访问量大,造成了流量超限或者并发数大引起的资源超限出现的错误
    2013-05-05
  • Linux gzip 命令的使用

    Linux gzip 命令的使用

    这篇文章主要介绍了Linux gzip 命令的使用,帮助大家更好的理解和学习Linux系统,感兴趣的朋友可以了解下
    2020-08-08
  • centOS6中使用crontab定时运行执行jar程序的脚本

    centOS6中使用crontab定时运行执行jar程序的脚本

    这篇文章主要介绍了centOS6中使用crontab定时运行执行jar程序的脚本,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
    2019-11-11
  • Linux一个增强的截图及分享工具:ScreenCloud

    Linux一个增强的截图及分享工具:ScreenCloud

    今天小编就为大家分享一篇关于Linux一个增强的截图及分享工具:ScreenCloud,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
    2018-10-10
  • CentOS8中的nmcli使用详解

    CentOS8中的nmcli使用详解

    这篇文章主要介绍了CentOS8的nmcli使用,基于RHEL8/CentOS8的nmcli常见命令使用,非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下
    2019-09-09
  • 详解CentOS7防火墙管理firewalld

    详解CentOS7防火墙管理firewalld

    本篇文章主要介绍了CentOS7防火墙管理firewalld,centos 7中防火墙是一个非常的强大的功能了,有兴趣的可以了解一下。
    2016-12-12
  • 树莓派无线上网时无屏幕下发现树莓派IP的方法

    树莓派无线上网时无屏幕下发现树莓派IP的方法

    今天小编就为大家分享一篇关于树莓派无线上网时无屏幕下发现树莓派IP的方法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
    2019-04-04
  • ubuntu16.04搭建nfs服务的方法

    ubuntu16.04搭建nfs服务的方法

    今天小编就为大家分享一篇关于ubuntu16.04搭建nfs服务的方法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
    2019-03-03
  • CentOS7下 yum方式安装Nginx的实现步骤

    CentOS7下 yum方式安装Nginx的实现步骤

    这篇文章主要介绍了CentOS7下 yum方式安装Nginx的实现步骤的相关资料,希望通过本文能帮助到大家,需要的朋友可以参考下
    2017-10-10
  • CentOS服务器初始化设置详细说明

    CentOS服务器初始化设置详细说明

    这篇文章主要介绍了CentOS服务器初始化设置详细说明,需要的朋友可以参考下
    2018-01-01

最新评论