快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

Apache 安装和使用方法说明

  #./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

  

  SetHandler weblogic-handler

  WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

  Debug ALL

  WLTempDir "/opt/apache2/logs"

  DebugConfigInfo ON

  DynamicServerList OFF

  

  

  SetHandler weblogic-handler

  WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

  Debug ALL

  WLTempDir "/opt/apache2/logs"

  DebugConfigInfo ON

  DynamicServerList OFF

  

  

  SetHandler weblogic-handler

  WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

  Debug ALL

  WLTempDir "/opt/apache2/logs"

  DebugConfigInfo ON

  DynamicServerList OFF

  

  

  SetHandler weblogic-handler

  WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

  Debug ALL

  WLTempDir "/opt/apache2/logs"

  DebugConfigInfo ON

  DynamicServerList OFF

  

  

  SetHandler weblogic-handler

  WebLogicCluster 135.251.218.17:7013,135.251.218.14:7013

  Debug ALL

  WLTempDir "/opt/apache2/logs"

  DebugConfigInfo ON

  # DynamicServerList OFF

  

  

  #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

  

  五、运行和测试

  #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

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论