linux 安装tomcat

下载 jdk-6u10-linux-i586.bin apache-tomcat-6.0.18.tar.gz
cd /usr/local
./jdk-6610-linux-i586.bin
vi /etc/profile 加入

JAVA_HOME=/usr/local/jdk1.6
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH PATH JAVA_HOME

tar xzvf apache-tomcat-6.0.18.tar.gz
cd tomcat/bin;./startup.sh

Leave a Reply