Java IntelliJ 说'无法运行程序'/path/to/tomcat/bin/catalina.sh'错误=13 权限被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3092049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IntelliJ says 'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied
提问by Blankman
In intelliJ ulimate, running a bare bone spring mvc application I get the error:
在 intelliJ ulimate 中,运行裸骨弹簧 mvc 应用程序时出现错误:
'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied
How to I fix this? (i'm on a mac)
我该如何解决这个问题?(我在 mac 上)
采纳答案by Andrzej Doyle
In short, from a console:
简而言之,从控制台:
chmod a+x /path/to/tomcat/bin/catalina.sh
chmod a+x /path/to/tomcat/bin/catalina.sh
This assumes that you 've elided the Tomcat path in your post, and checked that it really does exist on your system before posting here. Depending on the existing permissions of the file, you may need to issue the above command as a user with sufficiently elevated privileges.
这假设您已经在您的帖子中省略了 Tomcat 路径,并在在这里发布之前检查它确实存在于您的系统中。根据文件的现有权限,您可能需要以具有足够提升权限的用户身份发出上述命令。
回答by ZongBing Tian
I meet this error today. It's because I take a wrong package of Tomcat6.
In Max OS, I should download the tar.gz
, but I download the zip
.
Make sure you get the right Tomcat package.
我今天遇到了这个错误。那是因为我拿错了Tomcat6的包。在最大的操作系统,我应该下载tar.gz
,但我下载zip
。确保您获得了正确的 Tomcat 包。
回答by DmitMedv
回答by Do Nhu Vy
Solution: You set permission for Tomcat directory:
解决方案:您为Tomcat目录设置权限:
chmod -R 777 apache-tomcat-directory