mac下启动tomcat报错:The BASEDIR environment variable is not defined correctly

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

解决办法:
把$CATALINA_HOME/bin目录下所有.sh文件添加一个可执行权限。
sudo chmod +x /usr/share/tomcat/bin/*.sh

CATALINA_HOME根据具体配置情况执行上面的命令。

你可能感兴趣的:(网络)