sudo - 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”。
解决方案
sudo systemd-analyze verify daphnei.service 是在将 ExcecStart 改为 ExecStart 后完成的。
推荐阅读
- python - 无法弄清楚如何对列表进行交互作为 if 语句的比较
- azure-data-factory - 如何将数据从 csv 复制到 Azure SQL Server 表?
- javascript - 仅打印没有分页或任何其他内容的 ag-grid 数据的有效方法
- parsing - 以下标记定义永远无法匹配,因为先前的标记匹配相同的输入:INT,STRING
- asp.net-web-api - 从 asp.net webAPI 返回带有非拉丁字符的文件
- angular - 如何以角度调试测试?
- sql - Postgres SQL 如何在 SQL 数据库上透视表
- android - IONIC http.get 挂在模拟器或设备上,但在浏览器上工作
- flutter - firebase_crashlytics 在颤振中使用 try / catch 时是否有效?
- angularjs - 错误 Webpack: Uncaught ReferenceError: require is not defined