从windows里面直接拷贝了一份apache-tomcat-6.0.18,在Linux下,无论如何,也无法正常使用tomcat,总是错误如下:
The
BASEDIR
environment
variable
is not defined correctly
This
environment
variable
is needed to run this program
之前就是:
Cannot find ./catalina.sh
This file is needed to run this program
经过无数次磨练后,才猛然发现那些.sh文件都不是可执行文件,于是chmod +x *.sh,一切就全都搞定!
不能只进行chmod +x startup.sh哦,因为运行./startup.sh时,仍需要依赖于其他的.sh进行运行,所以必须将其目录下的所有的.sh文件添加执行权限。