Linux学习(二)tomcat安装
一、安装tomcat
首先下载好tomcat for linux版本
1. #tar -zxvf apache-tomcat-5.5.28.tar.gz
2. 复制到usr/local/
3. 进入usr/local/tomcat/bin,打开终端./startup.sh启动tomcat
二、Tomcat自动启动配置
将一下内容添加到rc.local末尾
# 设置启动tomcat4
export CATALINA_BASE=/usr/local/tomcat
export CATALINA_HOME=/usr/local/tomcat
export CATALINA_TMPDIR=/usr/local/tomcat/temp
export JAVA_HOME=/usr/java/jdk1.5.0
export TOMCAT_HOME=/usr/local/tomcat
$TOMCAT_HOME/bin/startup.sh
CATALINA_OPTS="$CATALINA_OPTS -Xms128m -Xmx256m $JPDA_OPTS"
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
echo "Using CATALINA_OPTS: $CATALINA_OPTS"
echo "Using JAVA_OPTS: $JAVA_OPTS"