二.安装步骤:
#gunzip apache-tomcat-
# tar xf apache-tomcat-
# mv apache-tomcat-
# chmod +x jdk-1_5_0_02-linux-i586.bin
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/linux/)# mv jdk-1_5_0_02 jdk
# cd jdk/bin
# ln –s /jdk/bin/java /usr/sbin/java
# cd /tomcat/bin
# vi startup.sh
添加 JAVA_HOME=/jdk
export JAVA_HOME
# vi shutdown.sh
添加 JAVA_HOME=/jdk
export JAVA_HOME
# vi Catalina.sh 添加下列红字部分
if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
. "$CATALINA_HOME"/bin/setenv.sh
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/linux/)fi
CATALINA_OPTS="-Djava.awt.headless=true"
#JAVA_OPTS="-Xms猜你喜欢