我已經下載了 tomcat 64 位 windows zip。我嘗試在 Windows 10 中使用 service.bat 檔案安裝 tomcat 9。但是在從命令列執行 service.bat 時,我看到以下錯誤,盡管我已經安裝了 tomcat9.exe 并且在 env 變數中正確定義了 CATALINA_HOME。我不確定這里缺少什么。你的建議很有幫助。
執行 service.bat 時出錯
Neither the Tomcat9.exe file nor the 'tomcat9'.exe file was found...
Either the CATALINA_HOME environment variable is not defined correctly or
the incorrect service name has been used.
Both the CATALINA_HOME environment variable and the correct service name
are required to run this program.
CATALINA_HOME: C:\Program Files\apache-tomcat-9.0.54
錯誤影像:

下載的zip目錄(tomcat9.exe可用)

uj5u.com熱心網友回復:
CATALINA_HOME: C:\Program Files\apache-tomcat-9.0.54
CATALINA_HOME 的上述值與您的配置不匹配:您的檔案不在“C:\Program Files\apache-tomcat-9.0.54”中,而是在“C:\Users\ username \Downloads\apache-tomcat- 9.0.0.54”中。 54"。
只需取消設定 CATALINA_HOME。該service.bat腳本能夠猜測該變數的值。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/316725.html
上一篇:如何從輸出層獲得連續值
下一篇:docker容器自動創建和洗掉
