JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:[分享] Apache13 + PHP4 + mod_jk + tomcat4/5 [Re:jekyll]
dannylee





發文: 3
積分: 0
於 2005-02-28 22:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
FreeBSD 5.2 / 真實IP / 無firewall
以下皆以 root 身份執行, 且過程中未出現錯誤 :

1.安裝 linux-sun-jdk14
1
2
#cd /usr/ports/java/linux-sun-jdk14
#make install clean

2.安裝 FreeBSD JDK14
1
2
3
4
5
6
#ee /etc/fstab    加入以下這行(欄間隔1個Tab)
linprocfs  /compat/linux/proc  linprocfs  rw  0  0
#kldload linprocfs
#mount /compat/linux/proc
#cd /usr/ports/java/jdk14
#make install clean

3.JAVA測試與訊息
1
2
3
4
#java -version
java version "1.4.2-p7"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p7-root_21_feb_2005_16_41)
Java HotSpot(TM) Client VM (build 1.4.2-p7-root_21_feb_2005_16_41, mixed mode)

4.安裝 Tomcat50
1
2
#cd /usr/ports/www/jakarta-tomcat50
#make install clean

5.加入環境變數並重新開機
1
2
3
4
5
6
7
8
9
10
11
#ee /etc/rc.conf
linux_enable="YES"
 
#ee /usr/local/etc/rc.d/020.jakarta-tomcat50.sh
export JAVA_HOME=/usr/local/jdk1.4.2
export TOMCAT_HOME=/usr/local/jakarta-tomcat5.0
export CATALINA_HOME=/usr/local/jakarta-tomcat5.0
export CLASSPATH=./:$JAVA_HOME/lib:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre
export PATH=$PATH:$JAVA_HOME/bin:$TOMCAT_HOME/bin
 
#reboot


結果與測試:
http://xxx.xxx.xxx.xxx:8080/  看不到網頁

#telnet localhost 8080
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host

#sockstat  有看到下列3行, 沒看到TOMCAT/CATALINA 字樣.
www java 469 6 tcp4 *:8180 *:*
www java 469 18 tcp4 *:8009 *:*
www java 469 20 tcp4 127.0.0.1:8005 *:*

顯然TOMCAT沒有啟動, 但是 ls /var/run 卻可看到
-rw------- 1 www www 6 Feb 28 21:57 tomcat50.pid

請教各位先進, 為何TOMCAT沒有啟動 ? 該如何作才能啟動TOMCAT ? 環境變數設這樣對嗎?
感謝不吝指教!
(我已經反複試了近兩週了, 改裝TOMCAT4.1也是一樣出不來, 好累!)


dannylee edited on 2005-02-28 23:08
reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
7871 [精華] [分享] Apache13 + PHP4 + mod_jk + tomcat4/5 jekyll 1707 2003-12-14 18:48
5074 Re:[分享] Apache13 + PHP4 + mod_jk + tomcat4/5 dannylee 1841 2005-02-28 22:54
4555 Re:[分享] Apache13 + PHP4 + mod_jk + tomcat4/5 bedbtve 112 2005-06-25 23:09
4527 Re:[分享] Apache13 + PHP4 + mod_jk + tomcat4/5 bedbtve 99 2005-06-26 08:45
5141 Re:[分享] Apache13 + PHP4 + mod_jk + tomcat4/5 bedbtve 60 2005-06-26 09:58
» JWorld@TW »  Application Server

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8