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
删除后,即可正常执行。
仔细查看,原来是因为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
删除后,即可正常执行。
相关文章推荐
- jenkins+gitlab+maven+tomcat档
- mac tomcat安装
- tomcat项目注入
- Tomcat能承受的极限压力测试
- 修改tomcat启动时间
- Tomcat 安全配置与性能优化
- Tomcat web.xml中context-param,listener的作用及加载过程
- tomcat调试
- tomcat启动一闪而过的几种问题
- Tomcat中的Connector配置
- Linux下tomcat服务有关命令
- eclipse中访问不了tomcat首页server Locations变灰无法编辑
- linux下让tomcat以service方式运行
- android真机访问本地局域网tomcat服务器
- tomcat启动一闪而过解决办法报错The CATALINA_HOME environment variable is not defined correctly
- SolrCloud 4.3.1+Tomcat 7安装配置实践
- Java事务--spring+atomikos+tomcat实现分布式事务
- 添物不花钱学JavaEE(基础篇)- Tomcat
- 添物不花钱学JavaEE(基础篇)- Tomcat
- tomcat不支持中文路径(链接)的解决办法