tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh
生活随笔
收集整理的這篇文章主要介紹了
tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先看下報錯代碼:
Cannot find /usr/local/tomcat1/bin/setclasspath.sh This file is needed to run this program這個可能是沒有在 /etc/profile 中配置環境,這是第一種可能;如果是這種情況的話,可以這樣做:vi /etc/profile
并在文件末尾加上export CATALINA_HOME=/usr/local/tomcat export 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配置路徑正確。這是本人在做項目時候發現的錯誤,最后是以上述兩種操作解決這個問題的,有待觀察
總結
以上是生活随笔為你收集整理的tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 空间句法软件_【特训营报名】空间句法理论
- 下一篇: 熊猫烧香 - 核心源码