首页 > 解决方案 > systemctl 无法启动。“Sudo systemctl start apasn”我不明白错误

问题描述

我想根据参考书向systemd注册服务。但是,如果您输入sudo systemctl start apasn

#.service
[Unit]
Description=gunicorn daemon (apasn)
Requires=apasn.socket
After=network.target

[Service]
User=administrator
Group=www-data
WorkingDirectory=/home/administrator/apasn
ExcecStart=/home/administrator/apasn/venv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/run/gunicorn/apasn.sock person_manager.wsgi:application

[Install]
WantedBy=multi-user.target

你会得到一个错误。而我解决不了。

无法启动 apasn.service:单元 apasn.service 未正确加载:参数无效。有关详细信息,请参阅系统日志和“systemctl status apasn.service”。

标签: sudosystemdsystemctl

解决方案


sudo systemd-analyze verify daphnei.service 是在将 ExcecStart 改为 ExecStart 后完成的。


推荐阅读