啓動Tomcat失敗 The file is absent or does not have execute permission

1、Linux上部署好tomcat後,執行啓動命令時報錯

Cannot find bin/catalina.sh 

The file is absent or does not have execute permission 

This file is needed to run this program 

2、對啓動腳本添加執行權限

找到tomcat安裝目錄,我的安裝目錄爲 app/tomcat/,切換到bin目錄下,執行下面的命令:

chmod 777  *.sh

3、執行成功後,重新啓動tomcat

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章