无法启动tomcat服务器

时间:2017-07-19 03:31:01

标签: linux apache tomcat ubuntu-16.04

Tomcat工作正常并且在禁用ufw后突然我在尝试获取tomcat的状态时收到以下消息。 BTW我正在运行Ubuntu& tomcat8

root@saba:~# sudo systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/etc/systemd/system/tomcat.service; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2017-07-19 03:12:59 UTC; 3s ago
  Process: 18268 ExecStop=/opt/tomcat/bin/shutdown.sh (code=exited, status=1/FAILURE)
  Process: 18253 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=0/SUCCESS)
 Main PID: 18265 (code=exited, status=1/FAILURE)

Jul 19 03:12:59 saba systemd[1]: tomcat.service: Control process exited, code=exited status=1
Jul 19 03:12:59 saba systemd[1]: tomcat.service: Unit entered failed state.
Jul 19 03:12:59 saba systemd[1]: tomcat.service: Failed with result 'exit-code'.

以下是命令bash -x /opt/tomcat/bin/shutdown.sh的输出

  • OS400 =假
  • case" uname"在 ++ uname
  • PRG = /选择/ Tomcat的/ bin中/ shutdown.sh
  • ' [' -h /opt/tomcat/bin/shutdown.sh']' ++ dirname /opt/tomcat/bin/shutdown.sh
  • PRGDIR = /选择/ Tomcat的/ bin中
  • EXECUTABLE = catalina.sh
  • ' [' '!' -x /opt/tomcat/bin/catalina.sh']'
  • exec /opt/tomcat/bin/catalina.sh停止 使用CATALINA_BASE:/ opt / tomcat 使用CATALINA_HOME:/ opt / tomcat 使用CATALINA_TMPDIR:/ opt / tomcat / temp 使用JRE_HOME:/ usr / lib / jvm / java-8-openjdk-amd64 / jre / bin / java 使用CLASSPATH:/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar /opt/tomcat/bin/catalina.sh:1:eval:/ usr / lib / jvm / java-8-openjdk-amd64 / jre / bin / java / bin / java:not found

0 个答案:

没有答案