我有一个/etc/init.d/tomcat1脚本,它在rc级别3和5上运行,这个脚本在开始时调用/usr/local/tomcat1/bin/startup.sh。
虽然我可以从控制台手动执行/usr/local/tomcat1/bin/startup.sh,但在引导时,我在/var/log/boot.msg中得到了以下内容:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run thi