用rundeck啓動tomcat報錯

報錯以下
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
09:28:50 At least one of these environment variable is needed to run this programthis

環境變量的問題:
解決方法,在腳本的前面加上:
export BASH_ENV=/etc/profile;it

相關文章
相關標籤/搜索