Heim >Datenbank >MySQL-Tutorial >java在Linux下的web应用(二)_MySQL

java在Linux下的web应用(二)_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 14:08:381171Durchsuche

java在Linux下的web应用(二)

wangzy [本站版主]
gnujsp1.0.0在RedHat下基于apache jserv的安装

首先确认你已经安装了apache jserv,如果你还没有安装apache jserv,请参考在《RedHat下 安装apache jserv 1.1.2》一文。
默认jserv安装在/usr/local/jserv下,jserv.conf在/usr/local/jserv/conf下

一、需要的软件
从http://www.klomp.org/gnujsp/取得gnujsp-1.0.0.tar.gz

二、

#cp gnujsp-1.0.0.tar.gz /usr/local
#tar xvzf gnujsp-1.0.0.tar.gz
#ln -s gnujsp-1.0.0 gnujsp
#cd /usr/local/jserv/etc
#cp zone.properties alph.properties

#vi alph.properties修改alph.properties加入:

# List of Repositories
#######################

repositories=/usr/local/gnujsp-1.0.0/lib/gnujsp10.jar
repositories=/usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar
repositories=/your/jdbcbeans/path#你的javabean的路径
#repositories=/home/heyl/lib/java/Acme.jar
#repositories=/usr/local/webl-3.0/lib/WebL.jar

# Classloader parameters
#########################

autoreload.classes=true

# Enable servlet resourced autoreloading (properties and other
# loaded resources)
autoreload.file=true

...

# Servlet Aliases

##################
# Note: if using webl or Acme stuff, add the jars here too
# if you added them to the repositories above (alph)
# In my real settings I added: usepackages=true,language=de,country=de
# but I guess you may prefer the default locale :-) (alph)

servlet.gnujsp.code=org.gjt.jsp.JspServlet
servlet.gnujsp.initArgs=checkclass=true,pagebase=/usr/local/www/doc,
scratchdir=/var/local/apache/jsp,debug=true,compiler=builtin-javac
-classpath %classpath%:%scratchdir%:/usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar:
/usr/local/gnujsp-1.0.0/lib/gnujsp10.jar:/your/jdbcbeans/path
-d %scratchdir% -deprecation %source%
#其中$scratchdir为jsp文件生成的java和class文件的目录

存盘


三、
#vi jserv.properties加入
wrapper.classpath=/usr/lib/jdk/lib/tools.zip

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn