Tomcat - 在VPS

时间:2017-06-08 19:16:57

标签: java tomcat debian vps ovh

我试图在我的VPS(Debian 8.8)上运行tomcat 8,我遇到以下问题: 在启动tomcat期间:

sh startup.sh 
Using CATALINA_BASE:   /usr/share/tomcat
Using CATALINA_HOME:   /usr/share/tomcat
Using CATALINA_TMPDIR: /usr/share/tomcat/temp
Using JRE_HOME:        /usr/local/java
Using CLASSPATH:       /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
Tomcat started.

一切看起来都不错但是tomcat仍然不能正常工作,当我想关闭服务器时,我会收到这些信息:

sh shutdown.sh
Using CATALINA_BASE:   /usr/share/tomcat
Using CATALINA_HOME:   /usr/share/tomcat
Using CATALINA_TMPDIR: /usr/share/tomcat/temp
Using JRE_HOME:        /usr/local/java
Using CLASSPATH:       /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
./catalina.sh: 1: eval: /usr/local/java/bin/java: not found

有关我的环境的一些信息:

java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

which java
/home/ovh/src/soft/jdk1.8.0_131/bin/java

printenv
JRE_HOME=/usr/local/java
PATH=/home/ovh/src/soft/jdk1.8.0_131/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/jdk/jdk1.8.0_131/bin
JAVA_HOME=/home/ovh/src/soft/jdk1.8.0_131

1 个答案:

答案 0 :(得分:1)

检查您用于tomcat的用户是否具有执行权限 :

  • llvm::StoreInst(val, alloc, false, block);
  • /usr/local/java/bin/java
  • /usr/share/tomcat/bin/bootstrap.jar