linux下启动tomcat的问题
启动tomcat5的时候出现下面的提示
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
我该怎么办亚
我已经设置了BASEDIR 在root/.pro*下
[root@localhost root]# echo $BASEDIR 显示
/root/tomcat
怎么解决呀
问题点数:75、回复次数:2Top
1 楼qiyongjun2003(风也悄悄)回复于 2005-05-09 17:00:32 得分 75
将startup.sh改成如下格式:
#!/bin/sh
# -----------------------------------------------------------------------------
# Start Script for the CATALINA Server
#
# $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $
# -----------------------------------------------------------------------------
# resolve links - $0 may be a softlink
TOMCAT_HOME=/home/tomcat4
export TOMCAT_HOME
JAVA_HOME=/home/j2sdk1.4.1_03
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=/home/tomcat4/lib:/home/tomcat4/lib/conf:/home/tomcat4/bin
export CLASSPATH
TOMCAT_OPTS="-Xms64m -Xmx512m"
export TOMCAT_OPTS
LANG=en_US.iso88591
export LANG
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
EXECUTABLE=catalina.sh
# Check that target executable exists
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "This file is needed to run this program"
exit 1
fi
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
Top
2 楼qiyongjun2003(风也悄悄)回复于 2005-05-09 17:02:16 得分 0
然后在命令行输入./startup.sh即可Top




