用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 program

环境变量的问题:
解决方法,在脚本的前面加上:
export BASH_ENV=/etc/profile;

原文地址:https://www.cnblogs.com/echo-valley/p/8328189.html