【发布时间】:2020-05-31 20:52:14
【问题描述】:
在我部署 python 项目的任务中,我已经完成了 gunicorn 设置。
检查 gunicorn 状态文件(我今天早些时候刚刚运行了这个命令,它返回了以下内容):
sudo systemctl status gunicorn.socket
Failed to dump process list, ignoring: No such file or directory
● gunicorn.socket - gunicorn socket
Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled; vendor preset: enabled)
Active: active (listening) since Sun 2020-02-16 21:42:10 UTC; 1min 16s ago
Listen: /run/gunicorn.sock (Stream)
CGroup: /system.slice/gunicorn.socket
我刚才去运行这个命令,结果不一样:
sudo systemctl status gunicorn.socket
● gunicorn.socket - gunicorn socket
Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled; vendor preset: enabled)
Active: failed (Result: service-start-limit-hit) since Sun 2020-02-16 21:45:01 UTC; 28min ago
Listen: /run/gunicorn.sock (Stream)
Feb 16 21:42:10 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: Listening on gunicorn socket.
Feb 16 21:45:01 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: gunicorn.socket: Failed with result 'service-st
lines 1-7/7 (END)
我跑了systemctl restart ssh,这并没有解决问题。
有人知道这是什么原因吗?
【问题讨论】:
-
这种情况有什么解决办法吗?