Tomcat5 启动 - 拒绝 catalina.out 的权限

发布于 2024-12-26 16:24:18 字数 857 浏览 5 评论 0原文

系统升级后,我无法再启动我的 tomcat5 服务器。执行 startup.sh 会产生以下消息:

imac:bin mmm$ ./startup.sh 
Using CATALINA_BASE:   /Library/Tomcat_bak
Using CATALINA_HOME:   /Library/Tomcat_bak
Using CATALINA_TMPDIR: /Library/Tomcat_bak/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Using CLASSPATH:       /Library/Tomcat_bak/bin/bootstrap.jar
touch: /Library/Tomcat_bak/logs/catalina.out: Permission denied
/Library/Tomcat_bak/bin/catalina.sh: line 294: /Library/Tomcat_bak/logs/catalina.out: Permission denied

用户和权限设置与升级前相同:

-rwxr-xr-x@  1 macports  admin   1,1K 29 Mär  2010 startup.sh

我所做的: 我将 iMac Snow Leopard 升级为 Lion。这导致了一些错误,例如python,所以我更新了macports并重新安装了我需要的端口(根据macPorts页面上的说明。我没有手动重新安装任何tomcat端口)。

问候 嗯……

After a system upgrade i am no longer able to start my tomcat5 server. Executing the startup.sh results in following message:

imac:bin mmm$ ./startup.sh 
Using CATALINA_BASE:   /Library/Tomcat_bak
Using CATALINA_HOME:   /Library/Tomcat_bak
Using CATALINA_TMPDIR: /Library/Tomcat_bak/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Using CLASSPATH:       /Library/Tomcat_bak/bin/bootstrap.jar
touch: /Library/Tomcat_bak/logs/catalina.out: Permission denied
/Library/Tomcat_bak/bin/catalina.sh: line 294: /Library/Tomcat_bak/logs/catalina.out: Permission denied

The user- and rightsettings are the same as before the upgrade:

-rwxr-xr-x@  1 macports  admin   1,1K 29 Mär  2010 startup.sh

What i've done:
I upgraded my iMac Snow Leopard to Lion. This caused some errors for e.g python, so i updated macports and reinstalled the ports i needed (according to the instructions on the macPorts page. I have not reinstalled any tomcat port manually).

Regards
mmm...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半夏半凉 2025-01-02 16:24:18

这似乎是操作系统升级后的用户/组问题。我在没有使用 macports 的情况下重新安装了 tomcat,现在它可以工作了。

It seems to be a user/group problem after the os upgrade. I reinstalled tomcat without using macports and now it works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文