ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法

Posted 秋9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法相关的知识,希望对你有一定的参考价值。

【现象】

root@ecs-demo:/etc/systemd/system# systemctl status eye
● eye.service - eye
     Loaded: loaded (/etc/systemd/system/eye.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2022-08-28 13:33:12 CST; 5s ago
    Process: 1873387 ExecStart=/app/znzm/eye/eye.jar (code=exited, status=203/EXEC)
   Main PID: 1873387 (code=exited, status=203/EXEC)

Aug 28 13:33:12 ecs-demo systemd[1]: Started eye.
Aug 28 13:33:12 ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied
Aug 28 13:33:12 ecs-demo systemd[1873387]: eye.service: Failed at step EXEC spawning /app/znzm/eye/eye.jar: Permiss>
Aug 28 13:33:12 ecs-demo systemd[1]: eye.service: Main process exited, code=exited, status=203/EXEC
Aug 28 13:33:12 ecs-demo systemd[1]: eye.service: Failed with result 'exit-code'.

【解决方法】

cd /app/znzm/eye
chmod 777 eye.jar

以上是关于ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法的主要内容,如果未能解决你的问题,请参考以下文章

ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法

systemd 和 init

systemd --user 配置

systemd --user 配置

systemd 详解

systemd 为啥会有那么大的争议?