The BASEDIR environment variable is not defined correctly This environment variable is needed to run

The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program


安装tomcat6.0.33在linux的根目录下,然后启动,总提示上面的错误,我就配置了许多环境变量:

CATALINA_BASE=/tomcat6

export CATALINA_BASE

CATALINA_HOME=/tomcat6

export CATALINA_HOME

CATALINA_TMPDIR=/tomcat6/temp

export CATALINA_TMPDIR

PATH=$CATALINA_HOME:PATH

export PATH

都设置了一遍,但是一点没有用。

最后到网上了查一下,说要把tomcat6/bin/中的所有的.sh文件具有执行功能

chmod 744 *.sh

如此就ok了

再执行

./startup.sh


你可能感兴趣的:(The BASEDIR environment variable is not defined correctly This environment variable is needed to run)