linux environment installation tomcat8, startup, reported not touch: /user/tomcat/tomcat8/logs/catalina.out: not a file or directory

  Cause of the problem: my jdk and tomcat are on the new user directory under the root directory, but when configuring JAVA_HOME, the path is not paired. Configuration is as follows:

export JAVA_HOME=/user/jdk/jdk1.7.0_80
export JRE_HOME=/user/jdk/jdk1.7.0_80/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin

  Because, user is in the root directory, not in the / directory, so, can not find the cause tomcat JAVA_HOME, of course, will not find / user / tomcat / tomcat8 / logs directory up. As long as the configuration can be changed as follows:

export JAVA_HOME=/root/user/jdk/jdk1.7.0_80
export JRE_HOME=/root/user/jdk/jdk1.7.0_80/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin

 

Guess you like

Origin www.cnblogs.com/helei123/p/11319097.html