Tomcat工作正常并且在禁用ufw后突然我在尝试获取tomcat的状态时收到以下消息。 BTW我正在运行Ubuntu& tomcat8
root@saba:~# sudo systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/etc/systemd/system/tomcat.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2017-07-19 03:12:59 UTC; 3s ago
Process: 18268 ExecStop=/opt/tomcat/bin/shutdown.sh (code=exited, status=1/FAILURE)
Process: 18253 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=0/SUCCESS)
Main PID: 18265 (code=exited, status=1/FAILURE)
Jul 19 03:12:59 saba systemd[1]: tomcat.service: Control process exited, code=exited status=1
Jul 19 03:12:59 saba systemd[1]: tomcat.service: Unit entered failed state.
Jul 19 03:12:59 saba systemd[1]: tomcat.service: Failed with result 'exit-code'.
以下是命令bash -x /opt/tomcat/bin/shutdown.sh的输出
uname
"在
++ uname