阿里云centos7 tomcat啟動報錯
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
說明linux在你的window上面找不到你的jdk和jre的存放路徑
第一種解決方法:
指令:進入 存放tomcat的檔案下面,/home/pan/tomcat/bin
編輯:vim setclasspath.sh,加入你的jdk路徑和jre路徑

第二種解決方法
vim ~/.bash_profile,加入以下代碼

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/2990.html
標籤:Linux
上一篇:yum安裝lnmp
