Tomcat startup error -JDK

1. Problem Description: Linux under Tomcat starts at The JAVA_HOME NOR encounter at The JRE_HOME Neither Environment variable IS defined
2. The reason: jdk are not using the installed via yum, is a direct download from the official website, although modified java_home, but not too smart the tomcat still is not automatically recognized java_home path
3. the treatment method:
# vim /data/tomcatdoll/bin/catalina.sh [modified according to their jdk path, at the beginning of the text file, that is, before the formal codes, probably in line 99 add the following code]
Export the JAVA_HOME = / usr / Java / jdk1.8.0_131
Export the JRE_HOME = / usr / Java / jdk1.8.0_131 / JRE
#systemctl the restart Tomcat-doll.service
OR
#sh / Data / Tomcat-Doll / bin / shutdown.sh
#sh /data/tomcat-doll/bin/startup.sh

Published 24 original articles · won praise 46 · views 693

Guess you like

Origin blog.csdn.net/qq_36913644/article/details/104383924