技术文章 - CS407165
在 ThingWorx 平台中,无法按照安装指南的说明启动 Tomcat 服务
已修改: 14-Dec-2023
适用于
- ThingWorx Platform 9.4
说明
- 按照安装指南中的安装步骤启动 Tomcat 服务失败
- Tomcat的log文件夹下没有生成日志文件
- 使用命令时得到如下返回信息: sudo service tomcat9.0 start
Job for tomcat9.0.service failed because a timeout was exceeded. See "systemctl status tomcat9.0.service" and "journalctl -xeu tomcat9.0.service" for details.
- 使用journalctl -xeu命令,它显示以下消息:
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/tomcat.pid → /run/tomcat.pid; pl> ####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:14: Ignoring unknown escape sequences: "\" ####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:29: Unknown key name '-Dcatalina.home' in section 'Service', ignoring. ####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/tomcat.pid → /run/tomcat.pid; pl> ####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:14: Ignoring unknown escape sequences: "\" ####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:29: Unknown key name '-Dcatalina.home' in section 'Service', ignoring. ####-virtual-machine systemd[1]: Starting Apache Tomcat Web Application Container... Subject: A start job for unit tomcat9.0.service has begun execution Defined-By: systemd Support: http://www.ubuntu.com/support A start job for unit tomcat9.0.service has begun execution. The job identifier is 4126. ####-virtual-machine systemd[1]: tomcat9.0.service: Can't open PID file /run/tomcat.pid (yet?) after start: Operation not permitted ####-virtual-machine systemd[1]: tomcat9.0.service: start operation timed out. Terminating. ####-virtual-machine systemd[1]: tomcat9.0.service: Failed with result 'timeout'. Subject: Unit failed Defined-By: systemd Support: http://www.ubuntu.com/support The unit tomcat9.0.service has entered the 'failed' state with result 'timeout'.
这是文章 407165 的 PDF 版本,可能已过期。最新版本 CS407165