`
彭自荣
  • 浏览: 15642 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

apache + resin linux 环境配置

阅读更多
apache + resin linux 环境配置
参考 http://www.chinaunix.net/jh/13/488469.html
    http://www.qqread.com/network/server/e226679.html
一、安装resin
1.下载resin-3.1.9.tar.gz
2.tar zxvf resin-3.1.9.tar.gz
  mv -r resin-3.1.9 /usr/java/
3.cd resin*
4../configure
5.make
6.make install

二、安装apache
1.下载httpd-2.2.6.tar.bz2
2.tar zxvf httpd-2.2.6.tar.bz2
  mv -r httpd-2.2.6 /usr/java/
2../configure --prefix=/usr/java/httpd2 --enable-module=most --enable-shared=max
3.make
4.make install

这样apache被安装在/usr/java/httpd2目录下

三.cd /usr/java/resin //进入resin安装目录 关联编译
  
  ./configure --with-apxs=/usr/java/httpd2/bin/apxs
 
   make
   
   make install

  
   这样在/usr/java/httpd2/modules 目录下会生成一个 mod_caucho.so 文件

  并会自动对 .../httpd2/conf/httpd.conf 进行配置
 
  默认自动配置:LoadModule caucho_module /usr/java/httpd2/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes


       最后改成如下:
       #LoadModule caucho_module modules/mod_caucho.so   
#ResinConfigServer localhost 6800   
#<location /caucho-status>        
# sethandler caucho-status    
#</location>

6.最后修改/usr/java/resin/conf/resin.conf
  <web-app id="/" root-directory="/webapps/ROOT"/>   --change to-->  <web-app id="/" root-directory="/usr/java/httpd2/htdocs"/>

7.检查配置:
  查检resin.conf 端口是否与httpd.conf 的 ResinConfigServer localhost 6800 配置是否一致
       <server id="" address="127.0.0.1" port="6800"/>
分享到:
评论
1 楼 laitaogood 2010-01-10  
荣荣,你好屌……

相关推荐

Global site tag (gtag.js) - Google Analytics