Tomcat5-讓您的主機能跑JSP

2009-05-13 00:42:54来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


http://www.weithenn.idv.tw/cgi-bin/wiki.pl/Tomcat5-%e8%ae%93%e6%82%a8%e7%9a%84%e4%b8%bb%e6%a9%9f%e8%83%bd%e8%b7%91JSP
【前言】
[Jakarta Tomcat]
是Sun和Apache協力合作所開發出來Java Servlet及Java Server Pages平台,為目前在世界上使用最廣的JSP 平台。
【作業環境】
FreeBSD 5.2-RELEASE
linux_base-7.1_7
jakarta-tomcat-5.0.25
JDK1.4.2
【安裝及設定】
Setp1.安裝Linux Base套件
切換至安裝路徑-->安裝套件-->修改rc.conf-->將linux base載入kernel
#cd /usr/ports/emulators/linux_base   //切換至安裝路徑
#make install clean                   //安裝套件並清除安裝過程中產生不必要檔案
#vi /etc/rc.conf                      //修改rc.conf
//這入此行以便於開機時自動載入linux.ko
linux_enable="YES"
#kldstat                              //確定linux base是否有載入至kernel
Id Refs Address Size Name
3 1 0xc4794000 19000 linux.ko
Setp2.安裝Tomcat5套件
切換至安裝路徑-->安裝套件-->下載相關套件再行安裝
#cd /usr/ports/www/jakarta-tomcat5     //切換至安裝路徑
#make install clean                    //安裝套件途中出現如下錯誤訊息
===> Configuring for jakarta-tomcat-5.0.25
===> Installing for jakarta-tomcat-5.0.25
===> jakarta-tomcat-5.0.25 depends on file: /usr/local/jdk1.4.2/bin/java - not found
===> Verifying install for /usr/local/jdk1.4.2/bin/java in /usr/ports/java/jdk14
===> jdk-1.4.2p6_4 :
The source distribution exists on your system, but due to licensing  restrictions you still need to download thepatchset,  bsd-jdk14-patches-6.tar.gz, from
http://www.eyesbeyond.com/freebsddom/java/jdk14.html.
Please place the patchset in /usr/ports/distfiles.
.*** Error code 1
Stop in /usr/ports/java/jdk14.
*** Error code 1
Stop in /usr/ports/www/jakarta-tomcat5.
由上述訊息可知叫您至
http://www.eyesbeyond.com/freebsddom/java/jdk14.html
.下載bsd-jdk14-patches-6.tar.gz並放到/usr/ports/distfiles.在執行一次make install clean
===> Installing for jakarta-tomcat-5.0.25
===> jakarta-tomcat-5.0.25 depends on file: /usr/local/jdk1.4.2/bin/java - not found
===> Verifying install for /usr/local/jdk1.4.2/bin/java in /usr/ports/java/jdk14
===> jdk-1.4.2p6_4 :
Because of licensing restrictions, you must fetch the source distribution
manually. Please access http://www.sun.com/software/java2/download.html
with a web browser and follow the "Download" link for the
"Java(TM) SDK 1.4.2". You will be required to log in and register,

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Ntop-流量檢測及封包辨識的網管軟體

下一篇:限制单个IP并发TCP连接的方法