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"/>
参考 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"/>