Я использую Ubuntu 18.04
Я «удачно установил» tomcat8, и он работал нормально ... пока я не испортил конфигурация. Итак, я "apt удалил" его и вручную удалил папки / usr / share / tomcat8
и / var / lib / tomcat7
.
Затем я переустановил его с помощью ...
sudo apt install tomcat8-admin
sudo apt install tomcat8
Но когда я делаю это, чтобы запустить его ...
sudo /etc/init.d/tomcat8 start
Я получаю ...
[....] Starting tomcat8 (via systemctl): tomcat8.serviceJob for tomcat8.service failed because the control process exited with error code.
See "systemctl status tomcat8.service" and "journalctl -xe" for details.
failed!
Когда я устанавливаю ...
sudo journalctl -xe
... там говорится ... «tomcat8 не установлен» и «tomcat8.service: сбой с результатом 'exit-code'» и «Ошибка модуля tomcat8.service»
Как мне переустановить tomcat8 и / или выяснить, почему он не запускается?
Полный вывод sudo journalctl -xe
выглядит следующим образом:
-- Unit tomcat8.service has begun starting up.
Sep 17 17:04:53 ip-172-31-27-106 tomcat8[20746]: * tomcat8 is not installed
Sep 17 17:04:53 ip-172-31-27-106 systemd[1]: tomcat8.service: Control process exited, code=exited status=1
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 systemd[1]: tomcat8.service: Failed with result 'exit-code'.
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 systemd[1]: Failed to start LSB: Start Tomcat..
-- Subject: Unit tomcat8.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit tomcat8.service has failed.
--
-- The result is RESULT.
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspe
Sep 17 17:04:53 ip-172-31-27-106 rsyslogd[20535]: action 'action 8' suspended (module 'builtin:omfile'), next retry is Thu Sep 17 17:05:23 2020, retry nbr 0. There should be messages
Sep 17 17:04:53 ip-172-31-27-106 sudo[20734]: pam_unix(sudo:session): session closed for user root
Sep 17 17:08:06 ip-172-31-27-106 sshd[20780]: Connection closed by authenticating user root 45.227.255.204 port 51400 [preauth]
Sep 17 17:08:34 ip-172-31-27-106 sudo[20783]: ubuntu : TTY=pts/0 ; PWD=/var/log/tomcat8 ; USER=root ; COMMAND=/bin/journalctl -xe
Sep 17 17:08:34 ip-172-31-27-106 sudo[20783]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)