Gunicorn 状态为活动(正在运行)但服务已禁用

问题描述 投票:0回答:1

当我运行“sudo systemctl Gunicorn status”时,它向我显示:

Loaded: loaded (/etc/systemd/system/gunicorn.service; disabled; vendor preset: enabled)

Active: active (running) since Sun 2022-02-06 11:55:05 EET; 23min ago

我不明白为什么它被禁用。

这是我的gunicorn.service :

[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=arh
Group=www-data
WorkingDirectory=/home/arh/toy-model/server
ExecStart=/home/arh/toy-model/venv/bin/gunicorn --workers 3 --bind unix:/home/arh/toy-model/server/server.sock server.wsgi:application
[Install]
WantedBy=multi-user.target
django deployment gunicorn wsgi systemctl
1个回答
0
投票

启用gunicorn可以解决问题

 sudo systemctl enable gunicorn

答案归功于@khalilios

© www.soinside.com 2019 - 2024. All rights reserved.