我在NetBeans中启动Tomcat服务器时遇到问题。当我点击启动按钮时,出现错误。
"Starting of tomact failed, check whether the /Application/NetBeans/apache-tomcat-7.0.52/bin/catalina/sh and related scripts are executable."
请查看截图获取更多详细信息
我在NetBeans中启动Tomcat服务器时遇到问题。当我点击启动按钮时,出现错误。
"Starting of tomact failed, check whether the /Application/NetBeans/apache-tomcat-7.0.52/bin/catalina/sh and related scripts are executable."
请查看截图获取更多详细信息
如果可以的话,建议您从命令行 / shell 运行,虽然我知道您在这种情况下想从 Netbeans 运行。
还要确保您所有的 .sh
脚本都是可执行的(使用 chmod
命令),否则无法调用它们。
最后,请确保您有运行脚本的正确权限。
完成上述检查后,您可能会收到其他错误消息,例如您的 JAVA_HOME
或 CATALINA_HOME
没有设置。这些很容易修复。
要从终端运行 Tomcat,
TOMCAT_HOME
或 TOMCAT_HOME/bin
)。.sh
脚本都是可执行的(使用命令 chmod a+x *.sh
)startup.sh
: ./startup.sh
或 bin/startup.sh
(取决于您是否在 TOMCAT_HOME
中或在 TOMCAT_HOME/bin
中)catalina.sh
可运行。chmod 755 <your tomcat location>/bin/catalina.sh
/Application/NetBeans/apache-tomcat-7.0.52/bin/catalina.sh
存在吗? - user1907906