具有gunicorn权限的Systemctl被拒绝

时间:2017-12-02 08:19:27

标签: flask gunicorn systemd systemctl

我已经在systemctl工作了一段时间,但它只是不工作。

我已经用gunicorn进行了测试,它运行得很好,但是当我这样做时

systemctl daemon-reload
systemctl enable flaskapp
systemctl start flaskapp

但是,我一直在遇到这样的问题

Dec  2 16:17:15 localhost systemd[1]: Started flaskapp.
Dec  2 16:17:15 localhost systemd[2130]: flaskapp.service: Failed at step EXEC spawning /home/flaskappuser/flaskapp/flaskvenv/bin/gunicorn: Permission denied
Dec  2 16:17:15 localhost systemd[1]: flaskapp.service: Main process exited, code=exited, status=203/EXEC
Dec  2 16:17:15 localhost systemd[1]: flaskapp.service: Unit entered failed state.
Dec  2 16:17:15 localhost systemd[1]: flaskapp.service: Failed with result 'exit-code'.
Dec  2 16:17:15 localhost systemd[1]: flaskapp.service: Service hold-off time over, scheduling restart.
Dec  2 16:17:15 localhost systemd[1]: Stopped flaskapp.
Dec  2 16:17:15 localhost systemd[1]: flaskapp.service: Start request repeated too quickly.
Dec  2 16:17:15 localhost systemd[1]: Failed to start flaskapp.
Dec  2 16:17:21 localhost systemd[1]: supervisor.service: Service hold-off time over, scheduling restart.
Dec  2 16:17:21 localhost systemd[1]: Stopped Supervisor process control system for UNIX.
Dec  2 16:17:21 localhost systemd[1]: Started Supervisor process control system for UNIX.

我尝试使用sudo,但它也无法工作。我在线搜索了所有内容但没有结果。任何人都可以帮我这个吗?

0 个答案:

没有答案