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 [color=red]6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes[/color]

最后改成如下:
#LoadModule caucho_module modules/mod_caucho.so
#ResinConfigServer localhost[color=red] 6800
#<location /caucho-status>
# sethandler caucho-status
#</location>[/color]
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"/>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值