1. 程式人生 > >Cygwin踩坑記錄(二)-在關閉tomcat時提示“Cannot find ./catalina.sh”

Cygwin踩坑記錄(二)-在關閉tomcat時提示“Cannot find ./catalina.sh”

問題描述: 

在進入tomcat的bin目錄後,執行指令./startup.sh或者./shutdown.sh,結果提示如下: 

    Cannot find ./catalina.sh 
    The file is absent or does not have execute permission 
    This file is needed to run this program 

分析: 提示資訊為檔案缺失或沒有執行許可權,既然bin目錄下存在catalina.sh檔案,那麼就是許可權問題了 。

解決辦法: 在tomcat的bin目錄下執行指令:chmod +x *.sh,然後再次啟動,啟動成功。