作者:海滨2502940147 | 来源:互联网 | 2017-11-15 08:53
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