调试失败的 systemctl 服务响应的步骤

调试失败的 systemctl 服务响应的步骤

我在 AWS EC2 实例上有一个 Hybris 服务器。当我尝试使用启动服务器时,systemctl start hybris.service出现以下错误:

Job for hybris.service failed because the control process exited with error code.

当我尝试导航到平台并运行 时./hybrisserver.sh start,我能够成功启动服务器。继续运行后journalctl -xe,我得到以下结果:

Jun 09 20:13:35 ip-10-41-19-107 systemd[23757]: hybris.service: Failed at step CHROOT spawning /opt/sap/hybris/bin/platform/hyb
-- Subject: Process /opt/sap/hybris/bin/platform/hybrisserver.sh could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The process /opt/sap/hybris/bin/platform/hybrisserver.sh could not be executed and failed.
-- 
-- The error number returned by this process is 2.
Jun 09 20:13:35 ip-10-41-19-107 systemd[1]: hybris.service: Control process exited, code=exited status=210
Jun 09 20:13:35 ip-10-41-19-107 systemd[1]: Failed to start Hybris Server.
-- Subject: Unit hybris.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit hybris.service has failed.
-- 
-- The result is failed.
Jun 09 20:13:35 ip-10-41-19-107 systemd[1]: hybris.service: Unit entered failed state.
Jun 09 20:13:35 ip-10-41-19-107 systemd[1]: hybris.service: Failed with result 'exit-code'.
Jun 09 20:13:35 ip-10-41-19-107 polkitd(authority=local)[10171]: Unregistered Authentication Agent for unix-process:23746:56770

我怎样才能找出code=exited status=210对应的内容,以及如何解决这个问题?

相关内容