国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JSP > 正文

在Linux下裝PHP+JSP

2024-09-05 00:20:27
字體:
供稿:網(wǎng)友
  這里我使用的是apache_1.3.9;apachejserv-1.1b3;gnujsp1.0.0
  全部是tar.gz格式,
  tar -zxvf apache.tar.gz
  tar -zxvf apachejserv-1.1b3
  tar -zxvf gnujsp.tar.gz
  tar -zxvf jsdk.tar.gz
  cd apache_1.3.9
  ./configure --prefix=/www
  make install
  cd ../php-3.0.12
  ./configure --with-mysql=/mysql --with-apache=../apache_1.3.9 --enable-track-vars
  make
  make install
  cd ../apachejserv-1.1b3
  ./configure --prefix=/usr/local/jserv --with-apache-src=../apache_1.3.9 --with-jdk-home=/jdk117_v3 --with-jsdk=../jsdk/lib/jsdk.jar
  make install
  cd ../apache_1.3.9
  ./configure --prefix=/www --activate-module=src/modules/php3/libphp3.a --activate-module=/src/modules/jserv/libjserv.a
  make
  make install
  
  然后開始配置php(略)
  接著來配置jsp
  1.把gnujsp10.jar,servlet-2.0-plus.jar拷到/www/htdocs/servlets目錄下
  2.修改jserv.conf,加上
  apjservaction .jsp /servlets/gnujsp
  apjservmount /java /root(這個目錄主要是用來存放jsp生成的java
  和class文件,可視具體情況而定)
  4.修改jserv.properties,加入
  wrapper.classpath=/jdk117_v3/lib/classes.zip
  wrapper.classpath=/usr/local/jserv/libexec/apachejserv.jar
  wrapper.classpath=/home/riso/webserversrc/jsdk/lib/jsdk.jar
  wrapper.classpath=/www/htdocs/servlets/gnujsp10.jar
  wrapper.classpath=/www/htdocs/servlets/servlet-2.0-plus.jar
  5.修改zone.properties,加入
  servlet.gnujsp.code=org.gjt.jsp.jspservlet
  servlet.gnujsp.jspservlet.initargs=checkclass=true
  servlet.gnujsp.jspservlet.initargs=scratchdir=/home/httpd/java
  servlet.gnujsp.jspservlet.initargs=compiler=/jdk117_v3/bin/javac -encoding %encoding% -classpath %classpath% -d %scratchdir% -deprecation%source%
  當(dāng)然,還要將jserv.conf文件include到httpd.conf中去
  cd /www/bin/
  ./apachectl start
  測試一下http://xxx.xxx.xxx.xxx/jserv/
  (先在jserv.conf文件中加入訪問權(quán)限)
  成功!
  將gnujsp自帶的三個例子文件拷貝到/www/htdocs下
  測試http://xxx.xxx.xxx.xxx/hello.jsp
  測試http://xxx.xxx.xxx.xxx/date.jsp
  測試http://xxx.xxx.xxx.xxx/snoop.jsp,歡迎訪問網(wǎng)頁設(shè)計愛好者web開發(fā)。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 寿阳县| 长武县| 武山县| 简阳市| 托克逊县| 金溪县| 勃利县| 雅安市| 广东省| 通道| 栾川县| 乐业县| 浑源县| 明水县| 涡阳县| 东丰县| 博野县| 清水县| 利辛县| 凤山县| 绥棱县| 武冈市| 张家川| 苍山县| 华宁县| 吉林市| 玛曲县| 康乐县| 四子王旗| 庆云县| 太谷县| 土默特右旗| 瑞昌市| 菏泽市| 徐水县| 莱州市| 镇安县| 若羌县| 抚顺县| 武城县| 孙吴县|