mac下IntelliJ IDEA 启动tomcat 报错: ...java.net.SocketException "Socket closed"
在mac电脑下面使用IntelliJ IDEA 运用debug启动项目弹出提示 Error running 'Tomcat 8.5.32': Unable to open debugger port (127.0.0.1:49156): java.net.SocketException "Socket closed"错误,导致tomcat服务器无法启动。
查看Event Log发现Error running 'Tomcat 8.5.32': Cannot run program "/Users/zazaza/Documents/apache-tomcat-8.5.32/bin/catalina.sh" (in directory "/Users/zazaza/Documents/apache-tomcat-8.5.32/bin"): error=13, Permission denied
如图所示
发现文件没有权限,只要给tomcat的文件目录设置一下权限,例如
chmod -R 777 apache-tomcat-8.5.32/
大功告成!