我正在使用 Vagrant 部署到 Ubuntu Linux 并尝试启动tomcat8
服务。
Tomcat 8 安装者apt-get install tomcat8
.
当使用service tomcat8 start
命令,我收到以下错误:
tomcat8.service 作业失败。有关详细信息,请参阅“systemctl status tomcat8.service”和“journalctl -xe”。
然后我跟踪了systemctl status tomcat8.service
,发现:
? tomcat8.service - LSB:启动 Tomcat。
已加载:已加载(/etc/init.d/tomcat8)
活动:自星期一 2016-03-28 09:44:17 GMT 起失败(结果:退出代码); 5 秒前
文档: man:systemd-sysv-generator(8)
进程:884 ExecStop=/etc/init.d/tomcat8 stop(代码=已退出,状态=0/SUCCESS)
进程:1312 ExecStart=/etc/init.d/tomcat8 start (code=exited, status=1/FAILURE)
3 月 28 日 09:44:12 vagrant-ubuntu-trusty systemd[1]:启动 LSB:启动 Tomcat....
3 月 28 日 09:44:12 vagrant-ubuntu-trusty tomcat8[1312]: * 启动 Tomcat servlet 引擎 tomcat8
3 月 28 日 09:44:17 vagrant-ubuntu-trusty tomcat8[1312]: ...失败!
3 月 28 日 09:44:17 vagrant-ubuntu-trusty systemd[1]: tomcat8.service: 控制进程退出,代码=退出状态=1
3 月 28 日 09:44:17 vagrant-ubuntu-trusty systemd[1]: 无法启动 LSB: 启动 Tomcat..
3 月 28 日 09:44:17 vagrant-ubuntu-trusty systemd[1]:单元 tomcat8.service 进入失败状态。
3 月 28 日 09:44:17 vagrant-ubuntu-trusty systemd[1]:tomcat8.service 失败。
我不确定如何继续运行我的 Tomcat 8 服务。
当 tomcat8 服务器在用户 tomcat8 下运行且 catalina.out 由 root 创建时,可能会导致此问题。
要解决此问题,请删除 catalina.out 并让 tomcat8 重新创建它。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)