问题描述
Mac
通过Idea
启动Tomcat
时出现Cannot run program xxx/catalina.sh
错误,详细如下:
Error running 'Tomcat9' Cannot run program "/Users/xxx/Desktop/work/devtools/apache-tomcat-9.0.19/bin/catalina.sh" (in directory "/Users/xxx/Desktop/work/devtools/apache-tomcat-9.0.19/bin"): error=13, Permission denied
问题解决
给Tomcat
目录设置权限
xxx@xxx ~ % cd /Users/xxx/Desktop/work/devtools/apache-tomcat-9.0.19/bin
xxx@xxx bin % chmod a+x catalina.sh