2016-03-28 119 views
5

我正在使用Vagrant部署到Ubuntu Linux並嘗試啓動tomcat8服務。服務tomcat8未能通過使用服務tomcat8啓動

Tomcat 8由apt-get install tomcat8安裝。

當使用service tomcat8 start命令,我得到了以下錯誤:

Job for tomcat8.service failed. See "systemctl status tomcat8.service" and "journalctl -xe" for details.

然後我跟蹤的systemctl status tomcat8.service,發現:


? tomcat8.service - LSB: Start Tomcat. Loaded: loaded (/etc/init.d/tomcat8)
Active: failed (Result: exit-code) since Mon 2016-03-28 09:44:17 GMT; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 884 ExecStop=/etc/init.d/tomcat8 stop (code=exited, status=0/SUCCESS)
Process: 1312 ExecStart=/etc/init.d/tomcat8 start (code=exited, status=1/FAILURE)
Mar 28 09:44:12 vagrant-ubuntu-trusty systemd[1]: Starting LSB: Start Tomcat....
Mar 28 09:44:12 vagrant-ubuntu-trusty tomcat8[1312]: * Starting Tomcat servlet engine tomcat8
Mar 28 09:44:17 vagrant-ubuntu-trusty tomcat8[1312]: ...fail!
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: tomcat8.service: control process exited, code=exited status=1
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: Failed to start LSB: Start Tomcat..
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: Unit tomcat8.service entered failed state.
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: tomcat8.service failed.

我不確定如何進行讓我的Tomcat 8服務運行。

+1

'/ var/log/tomcat8 /'中是否有任何日誌? – dahrens

+0

我發現我無法使用'service tomcat8 start'啓動tomcat8,但由於某種原因,它將_would_開始使用'/etc/init.d/tomcat8 start'。不知道這會幫助你,但... –

回答

2

這可能與this bug有關。最近的Java版本不贊成使用背書目錄,如果指定了目錄,則會失敗,但是Tomcat8指定了一個,即使它不存在。按照您的問題的評論中的建議檢查日誌/var/log/tomcat8/,以確定這是否確實是問題的根源。如果是,您可以等待錯誤修復,或者嘗試鏈接錯誤報告中建議的更新的catalina.sh文件。