lyqjsj 发表于 2003-7-31 14:23:59

(求助)jdk和Tomcat环境变量设置

我在Redhad9.0下安装了j2sdk-1_4_2-linux-i586.rpm与jakarta-tomcat-4.1.24.tar.gz
为了让Tomcat自启动,在/etc/rc.local里加入了环境变量和启动Tomcat的文件路径,但是不成功,在rc.local里我添加的(如下所示)是否有误??请给出正确的方法(请详细给出)
#/etc/rc.local
#!/bin/sh
#
export JAVA_HOME=/usr/java/j2sdk1.4.2
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export CATALINA_BASE=/opt/jakarta-tomcat-4.1.24
export CATALINA_HOME=/opt/jakarta-tomcat-4.1.24
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin

touch /var/lock/subsys/local
touch /opt/jakarta-tomcat-4.1.24/bin/startup.sh

mozilla 发表于 2003-7-31 14:41:02

touch /opt/jakarta-tomcat-4.1.24/bin/startup.sh有什么用?
应该是/opt/jakarta-tomcat-4.1.24/bin/startup.sh
页: [1]
查看完整版本: (求助)jdk和Tomcat环境变量设置