废话不多说,记下来,方便以后查阅
首先,下载tomcat6并解压到指定目录 重命名为tomcat
这时候当我们想启动tomcat的时候会出现如下错误:
deimmatoiMac-5:~ deim$ cd /Users/deim/Documents/work/tomcat/bin
deimmatoiMac-5:bin deim$ sh startup.sh
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
好,既然catalina.sh找不到,那不妨试试 打开 catalina.sh
deimmatoiMac-5:bin deim$ sh catalina.sh
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
经过google才知道是catalina.sh找不到JAVA_HOME,好,既然你找不到我就给你配。
JAVA_HOME=/System/Library/Java/J