发信人: laomie()
整理人: zjxyz(2001-05-01 09:45:25), 站内信件
|
安装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
-- ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.100.203.212]
|
|