gunicorn配置django

xiaoxiao2025-08-11  26

gunicorn配置:

动命令:gunicorn --bind unix:/tmp/new_gun.socket (app_name).wsgi:application

记得在settings里面加上这个app,

blog/blog/setting:

blog/gunicorn.conf:

重启:pstree -ap|grep gunicorn  kill -HUP pid 这个是直接重启 kill -9 pid 这个是关闭

gunicorn --bind unix:/tmp/new_gun.socket -c new_gun.conf Live_broadcast.wsgi:application 这个是第一次启动

转载请注明原文地址: https://www.6miu.com/read-5034676.html

最新回复(0)