您的位置:首页 > 运维架构 > Tomcat

mac tomcat: error 1 operation not permitted

2016-07-22 16:14 483 查看
在用微信传一个tomcat压缩包到别人后,解压后无法用idea启动,提示 error 1 operation not permitted,但是直接用命令可以执行。

仔细查看,原来是因为mac出于安全考虑,针对不允许执行的文件加了隔离属性。此属性为com.apple.quarantine。

具体会产生这个属性的解释如下:

http://apple.stackexchange.com/questions/104712/what-causes-os-x-to-mark-a-folder-as-quarantined

http://superuser.com/questions/28384/what-should-i-do-about-com-apple-quarantine

删除该属性的命令:

xattr -dr com.apple.quarantine ~/Sites

删除后,即可正常执行。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: