我正在使用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服務運行。
'/ var/log/tomcat8 /'中是否有任何日誌? – dahrens
我發現我無法使用'service tomcat8 start'啓動tomcat8,但由於某種原因,它將_would_開始使用'/etc/init.d/tomcat8 start'。不知道這會幫助你,但... –