电脑爱好者,提供IT资讯信息及各类编程知识文章介绍,欢迎大家来本站学习电脑知识。 最近更新 | 联系我们 RSS订阅本站最新文章
电脑爱好者
站内搜索: 
当前位置:首页>> PHP>>php,gunjsp的安装,配置:

php,gunjsp的安装,配置

来源:www.cncfan.com | 2006-1-11 | (有1733人读过)

php,gunjsp的安装,配置
安装jdk,jsdk于/usr/local/jdk,/usr/local/jdk/jsdk
install mysql:
./configure --prefix=/usr/local/mysql \
--enable-shared \
--enable-large-files \
--with-comment \
make
make install

install apache:
./configure --prefix=/usr/local/apache \
--enable-rule=SHARED_CORE \
--enable-module=so
make
make install

install php:
./configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--disable-debug \
--enable-ftp \
--with-java=/usr/local/jdk
make
make install

install apachej:
./configure --prefix=/usr/local/apache/jserv \
--with-apxs=/usr/local/apache/bin/apxs \
--with-jdk-home=/usr/local/jdk \
--with-JSDK=/usr/local/jdk/jsdk/lib/jsdk.jar \
--disable-debugging
make
make install

install gnujsp:
cp gnujsp-1.0.0 /usr/local/jdk/gnujsp

jsp的配置:
/usr/local/apache/conf/jserv/jserv.conf
加入
ApJServMount /alph /alph
ApJServMount /alph /alph/gnujsp

/usr/local/apache/conf/jserv/jserv.properties
加入
wrapper.classpath=/usr/local/jdk/jre/lib/rt.jar
wrapper.classpath=/usr/local/jdk/lib/tools.jar
alph.properties=/usr/local/apache/conf/jserv/alph.properties
更改
zones=root => zones=root,alph

/usr/local/apache/conf/jserv
新建alph.properties
repositories=/usr/local/jdk/gnujsp/lib/gnujsp10.jar
repositories=/usr/local/jdk/gnujsp/lib/servlet-2.0-plus.jar
repositories=/usr/local/jdk/gnujsp/lib/gnujsp10test.jar


autoreload.classes=true
autoreload.file=true

servlet.gnujsp.code=org.gjt.jsp.JspServlet
servlet.gnujsp.initArgs=checkclass=true
servlet.gnujsp.initArgs=pagebase=//
servlet.gnujsp.initArgs=scratchdir=/var/apache/jsp (新建/var/apache
/jsp目录,注意读写权限)
servlet.gnujsp.initArgs=debug=true

servlet.gnujsp.initArgs=compiler=builtin-javac -classpath %classpath%:
%scratchdir%:/usr/local/jdk/gnujsp/lib/gnujsp10.jar:/usr/local/jdk/gnu
jsp/lib/servlet-2.0-plus.jar:/usr/local/jdk/gnujsp/lib/gnujsp10test.ja
r -d %scratchdir% -deprecation %source%

servlet.gnujsp.initArgs=jserv=true
servlet.gnujsp.initArgs=pathdebug=falsea
PHP热门文章排行
网站赞助商
购买此位置

 

关于我们 | 网站地图 | 文档一览 | 友情链接| 联系我们

Copyright © 2003-2024 电脑爱好者 版权所有 备案号:鲁ICP备09059398号