红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

debian4安装tomcat

发布时间:2008-08-17 00:08:00来源:红联作者:Yose825
http://tomcat.apache.org/download-55.cgi

下载tomcat
下载安装jdk-1_5_0_15-linux-i586.bin jre-1_5_0_15-linux-i586.bin

vim etc/profile

增加

JAVA_HOME=/usr/local/jdk
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export PATH CLASSPATH JAVA_HOME

测试

debian:~# echo $JAVA_HOME
/usr/local/jdk

mv jdk /usr/local/jdk

mv jre /usr/local/jre

mv apache-tomcat5.5 /usr/local/tomcat5

cd ../tomcat5/bin

debian:/usr/local/tomcat5/bin# ./startup.sh

ps -el | grep java

http://IP:8080

出自:www.hilinux.com
文章评论

共有 0 条评论