mac的新特性应用程序的权限问题

dfuffjeb  于 2021-06-30  发布在  Java
关注(0)|答案(2)|浏览(241)

现在我绝望了。我觉得我要转身了。当我相信解决了某件事,我就打破了另一件事。本周开始使用这个mac。在设置我的环境的过程中,我遇到了一些挑战。我得到了一个maven项目,它使用cargo插件发布到tomcat,运行良好。为此,我不得不在google上创建/etc/launchd.conf文件。由于某些原因,在netbeans中创建的web应用程序无法发布到tomcat服务器,我认为这是应该的但是当我设置chmod 777/library/tomcat020时
sh-3.2#ls-l/图书馆/tomcat6020
总计136
-rw-r--r--@1 highjo admin 6148 nov 4 16:03.ds\u store我有这个文件
drwxr-xr-x@26 highjo admin 884 nov 4 16:03 bin和此文件夹
我本来想成为rwxrwx的。这是第一个问题。第二,maven的第一个项目已经不起作用了。显示
org.apache.maven.surefire.booter.surefireexecutionexception:无法为报告创建文件:/myproject/target/surefire reports/com.myproject.dao.hibernate.somedaoimpltest.txt(权限被拒绝);嵌套异常为java.io.filenotfoundexception:/myproject/target/surefire reports/com.myproject.dao.hibernate.somedaoimpltest.txt(权限被拒绝);嵌套异常为org.apache.maven.surefire.report.reporterexception:无法为报告创建文件:/myproject/target/surefire reports/com.myproject.dao.hibernate.somedaoimpltest.txt(权限被拒绝);嵌套异常为java.io.filenotfoundexception:/myproject/target/surefire reports/com.myproject.dao.hibernate.somedaoimpltest.txt(权限被拒绝)
当我需要运行一个应该在tomcat上发布的web应用程序时,同样的异常和权限被拒绝。netbeans是否缺少访问这些文件的权限?我设置开发环境的时间太晚了。我需要帮助!谢谢你看这个

jk9hmnmh

jk9hmnmh1#

你说呢 chmod 777 /Library/tomcat020 ,但是 ls /Library/tomcat6020 (注6)

amrnrhlw

amrnrhlw2#

至于chmod,您似乎期望递归行为(因为您查看的是chmod目录中的权限,而不是目录本身)。在这种情况下,您应该使用chmod-r。

相关问题