最近,我在digitalocean上主持了一个Django网站。然后我在本地编辑了网站的内容,并将其推送到GitHub上,然后将其拉到服务器上,并重新启动了nginx和gunicorn:
sudo systemctl restart nginx
sudo systemctl restart gunicorn然后更改没有反映回现场网站,只是为了检查我是否正确设置gnuicorn和nginx,我运行sudo systemctl status gunicorn.socket我得到Failed to dump process list, ignoring: No such file or directory
(venv) leptitoxadmin@ubuntu1:~/pyapps/leptx$ sudo systemctl status gunicorn.socket
[sudo] password for leptxadmin:
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 (running) since Wed 2020-02-12 05:57:58 UTC; 2h 42min ago
Listen: /run/gunicorn.sock (Stream)
CGroup: /system.slice/gunicorn.socket
Feb 12 05:57:58 ubuntu1 systemd[1]: Listening on gunicorn socket.这就是为什么更改没有反映到直播网站上的原因吗?我该怎么解决呢?谢谢
发布于 2021-08-17 10:33:56
我认为你也应该考虑重新加载守护进程。
sudo systemctl daemon-reload然后
sudo systemctl restart gunicornhttps://stackoverflow.com/questions/60184390
复制相似问题