600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh

tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh

时间:2021-10-14 13:33:06

相关推荐

tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh

首先看下报错代码:

Cannot find /usr/local/tomcat1/bin/setclasspath.shThis file is needed to run this program这个可能是没有在 /etc/profile 中配置环境,这是第一种可能;如果是这种情况的话,可以这样做:

vi /etc/profile

并在文件末尾加上export CATALINA_HOME=/usr/local/tomcatexport CATALINA_BASE=/usr/local/tomcat最后 source /etc/profile 使刚才的配置生效就可以了;第二种可能,是bin目录下的文件权限不够,11一下,然后给bin目录下的所有文件增加执行权限:chmod a+x *然后的话,再启动一下Tomcat试试,/usr/local/tomcat/bin/startup.sh

地址栏中输入“ htttp:// IP地址 :8080”,如果能看到汤姆猫,说明就成功了,建议多杀几次进程在重启,观察错误是否继续产生,务必保持配置文件server的端口配置正确和配置文件下的profile配置路径正确。这是本人在做项目时候发现的错误,最后是以上述两种操作解决这个问题的,有待观察

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。