gpt4 book ai didi

django - systemctl 奇怪的错误 : Invalid arguments

转载 作者:太空宇宙 更新时间:2023-11-03 16:50:58 25 4
gpt4 key购买 nike

这是我的服务文件:

[Unit]
Description=Daphne Interface

[Service]
ExecStartPre=cd /home/git/hsfzmun/server
ExecStart=/bin/bash/ -c "cd /home/git/hsfzmun/server && /home/git/virtualenvs/hsfzmun/bin/daphne -b 0.0.0.0 -p 8001 -v2 config.asgi:channel_layer"
Restart=always
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all

[Install]
WantedBy=multi-user.target

当我执行 sudo systemctl start daphnei 时,我得到:

Failed to start daphnei.service: Unit daphnei.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status daphnei.service' for details.

以及systemctl status daphnei.service的结果:

* daphnei.service - Daphne Interface
Loaded: error (Reason: Invalid argument)
Active: inactive (dead) (Result: exit-code) since Mon 2017-02-13 19:55:10 CST; 13min ago
Main PID: 16667 (code=exited, status=1/FAILURE)

怎么了?我正在使用 Ubuntu Server 16.04。

最佳答案

通常,要调试“无效参数”的确切原因,您可以使用:

sudo systemd-analyze verify daphnei.service

或者在用户本地服务的情况下:

sudo systemd-analyze --user verify daphnei.service

关于django - systemctl 奇怪的错误 : Invalid arguments,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42203720/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com