Я установил tomcat9, но он дает ошибку при перезапуске, - PullRequest
0 голосов
/ 19 февраля 2020

Когда я перезапускаю tomcat, предыдущий процесс не прерывается, поэтому в фоновом режиме выполняется несколько процессов tomcat

● tomcat9.0.service - LSB: Start/Stop Tomcat server
Loaded: loaded (/etc/init.d/tomcat9.0; generated)
Active: failed (Result: exit-code) since Wed 2020-02-19 06:44:42 CET; 1min 43s ago
Docs: man:systemd-sysv-generator(8)
Process: 1902 ExecStart=/etc/init.d/tomcat9.0 start (code=exited, status=126)
Tasks: 71 (limit: 4915)
CGroup: /system.slice/tomcat9.0.service
       ├─1092 /usr/bin/java -Djava.util.logging.config.file=/var/lib/tomcat9.0/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKey
       └─1915 /usr/bin/java -Djava.util.logging.config.file=/var/lib/tomcat9.0/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKey

Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal systemd[1]: This usually indicates unclean       termination of a previous run, or service implementation deficiencies.
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal systemd[1]: Starting LSB: Start/Stop Tomcat server...
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal sudo[1903]:     root : TTY=unknown ; PWD=/ ; USER=tomcat9.0 ; GROUP=tomcat9.0 ; COMMAND=/bin/sh /var/lib/tomcat9.0/bin/startup.sh
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal sudo[1903]: pam_unix(sudo:session): session opened for user tomcat9.0 by (uid=0)
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal tomcat9.0[1902]: Tomcat started.
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal tomcat9.0[1902]: /etc/init.d/tomcat9.0: line 27: /root: Is a directory
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal sudo[1903]: pam_unix(sudo:session): session closed for user tomcat9.0
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal systemd[1]: tomcat9.0.service: Control process exited, code=exited status=126
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal systemd[1]: tomcat9.0.service: Failed with result 'exit-code'.
Feb 19 06:44:42 Ubuntu-1604-xenial-64-minimal systemd[1]: Failed to start LSB: Start/Stop Tomcat server.
...